Table of Contents

Method CharWidth

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

CharWidth(char, int)

Returns width of the given number of specified character.

public virtual int CharWidth(char ch, int count)

Parameters

ch char

Character to calculate width.

count int

Number of characters.

Returns

int

Width of specified characters.

CharWidth(char, int, out int, bool)

Returns width of the such number of the specified characters fitting into the given Width.

public virtual int CharWidth(char ch, int width, out int count, bool exact)

Parameters

ch char

Character to calculate width.

width int

The width that should hold a number of the specified character.

count int

Receive number of character that can fit into specified width.

exact bool

Specifies whether the calculating should be precise.

Returns

int

Width of specified characters.