Method CharWidth
CharWidth(char, int)
Returns width of the given number of specified character.
public virtual int CharWidth(char ch, int count)
Parameters
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
charCharacter to calculate width.
width
intThe width that should hold a number of the specified character.
count
intReceive number of character that can fit into specified width.
exact
boolSpecifies whether the calculating should be precise.
Returns
- int
Width of specified characters.