Method StringWidth
StringWidth(string)
When implemented by a class, returns width of the given string.
int StringWidth(string text)
Parameters
text
stringThe text to calculate width.
Returns
- int
Width of specified string.
StringWidth(string, int, int)
When implemented by a class, returns width of the specified part of the given string.
int StringWidth(string text, int pos, int len)
Parameters
text
stringThe text to calculate width.
pos
intPosition of the first character to start calculating.
len
intLength of the part of string to calculate width.
Returns
- int
Width of the part of string.
StringWidth(string, int, out int, bool)
When implemented by a class, returns width of the given string fitting into the given Width.
int StringWidth(string text, int width, out int count, bool exact)
Parameters
text
stringThe text to calculate width.
width
intMaximum layout area for the string.
count
intReceives number of character fitting into specified Width.
exact
boolSpecifies whether the calculating should be precise.
Returns
- int
Width of the part of string.
StringWidth(string, int, int, int, out int)
When implemented by a class, returns width of the specified part of the given string fitting into the given Width.
int StringWidth(string text, int pos, int len, int width, out int count)
Parameters
text
stringThe text to calculate width.
pos
intPosition of the first character to start calculating.
len
intLength of the part of string to calculate width.
width
intMaximum layout area for the string.
count
intReceives number of characters fitting into specified Width.
Returns
- int
Width of the part of string.
StringWidth(string, int, int, int, out int, bool)
When implemented by a class, returns width of the specified part of the given string fitting into the given Width.
int StringWidth(string text, int pos, int len, int width, out int count, bool exact)
Parameters
text
stringThe text to calculate width.
pos
intPosition of the first character to start calculating.
len
intLength of the part of string to calculate width.
width
intMaximum layout area for the string.
count
intReceives number of characters fitting into the into the specified Width.
exact
boolSpecifies whether the calculating should be precise.
Returns
- int
Width of the part of string.