Method MeasureLine
MeasureLine(int, int, int)
When implemented by a class, measures part of the string given at by its Index.
double MeasureLine(int index, int pos, int len)
Parameters
indexintIndex of line to measure.
posintStart character of string to measure.
lenintNumber of characters to measure.
Returns
- double
Width of the measured part of the string.
MeasureLine(int, int, int, double, out int, bool)
When implemented by a class, measures part of the string given by its index.
double MeasureLine(int index, int pos, int len, double width, out int chars, bool exact)
Parameters
indexintIndex of line to measure.
posintStart character of string to measure.
lenintNumber of characters to measure.
widthdoubleMaximum length of the string.
charsintReceive real number of measured chars.
exactboolSpecifies whether the calculating should be precise.
Returns
- double
Width of the measured part of the string.
MeasureLine(string, StringItemInfo[], int, int)
When implemented by a class, measures part of given string.
double MeasureLine(string line, StringItemInfo[] colorData, int pos, int len)
Parameters
linestringText to measure.
colorDataStringItemInfo[]Color data attached to the given string.
posintStart character of string to measure.
lenintNumber of characters to measure.
Returns
- double
Width of the measured part of the string.
MeasureLine(string, StringItemInfo[], int, int, double, out int, bool)
When implemented by a class, measures part of given string.
double MeasureLine(string line, StringItemInfo[] colorData, int pos, int len, double width, out int chars, bool exact)
Parameters
linestringText to measure.
colorDataStringItemInfo[]Color data attached to the given string.
posintStart character of string to measure.
lenintNumber of characters to measure.
widthdoubleMaximum length of the string.
charsintReceive real number of measured chars.
exactboolSpecifies whether the calculating should be precise.
Returns
- double
Width of the measured part of the string.