Method StringWidth
StringWidth(string)
Measures specified string.
public double StringWidth(string text)
Parameters
text
stringText to measure.
Returns
- double
Summary string width.
StringWidth(string, int, int)
Measures specified string.
public double StringWidth(string text, int pos, int len)
Parameters
text
stringText to measure.
pos
intStart character to measure.
len
intNumber of character inside string to measure.
Returns
- double
Summary string width.
StringWidth(string, int, int, double, out int, bool)
Measures specified string.
public double StringWidth(string text, int pos, int len, double width, out int count, bool exact)
Parameters
text
stringText to measure.
pos
intStart character to measure.
len
intNumber of character inside string to measure.
width
doubleWidth which should fit string.
count
intReceives number of characters fitted into specified width.
exact
boolSpecifies whether the calculating should be precise.
Returns
- double
Summary string width.