Table of Contents

Method CharWidth

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

CharWidth(char, int)

When implemented by a class, returns width of the given number of specified character.

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)

When implemented by a class, returns width of the such number of the specified characters fitting into the given Width.

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.