CharWidth Method
CharWidth(Char, Int32)
When implemented by a class, returns width of the given number of specified character.
Declaration
int CharWidth(char ch, int count)
Parameters
Type | Name | Description |
---|---|---|
Char | ch | Character to calculate width. |
Int32 | count | Number of characters. |
Returns
Type | Description |
---|---|
Int32 | Width of specified characters. |
CharWidth(Char, Int32, out Int32, Boolean)
When implemented by a class, returns width of the such number of the specified characters fitting into the given Width.
Declaration
int CharWidth(char ch, int width, out int count, bool exact)
Parameters
Type | Name | Description |
---|---|---|
Char | ch | Character to calculate width. |
Int32 | width | The width that should hold a number of the specified character. |
Int32 | count | Receive number of character that can fit into specified width. |
Boolean | exact | Specifies whether the calculating should be precise. |
Returns
Type | Description |
---|---|
Int32 | Width of specified characters. |