Table of Contents

Method CharSize

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

CharSize(char, Font)

Returns the size of a single character when drawn with the specified font.

public SizeD CharSize(char ch, Font font)

Parameters

ch char

The character to measure.

font Font

The font used for measurement.

Returns

SizeD

A SizeD structure representing the width and height of the character.

CharSize(char, int, Font)

Returns the size of a sequence of identical characters when drawn with the specified font.

public SizeD CharSize(char ch, int count, Font font)

Parameters

ch char

The character to measure.

count int

The number of times the character is repeated.

font Font

The font used for measurement.

Returns

SizeD

A SizeD structure representing the width and height of the repeated characters.