Method MeasureLine
- Namespace
- Alternet.Editor.CodeCompletion
- Assembly
- Alternet.Editor.v9.dll
MeasureLine(int, int, int)
Measures part of the string given by its index.
public virtual int MeasureLine(int index, int pos, int len)
Parameters
index
intIndex of line to measure.
pos
intStart character of string to measure.
len
intNumber of characters to measure.
Returns
- int
Width of the measured part of the string.
MeasureLine(int, int, int, int, out int, bool)
Measures part of the string given by its index.
public virtual int MeasureLine(int index, int pos, int len, int width, out int chars, bool exact)
Parameters
index
intIndex of line to measure.
pos
intStart character of string to measure.
len
intNumber of characters to measure.
width
intMaximum length of the string.
chars
intReceive real number of measured chars.
exact
boolSpecifies whether the calculating should be precise.
Returns
- int
Width of the measured part of the string.
MeasureLine(string, StringItemInfo[], int, int)
Measures part of the given string.
public virtual int MeasureLine(string line, StringItemInfo[] colorData, int pos, int len)
Parameters
line
stringText to measure.
colorData
StringItemInfo[]Color data attached to the given string.
pos
intStart character of string to measure.
len
intNumber of characters to measure.
Returns
- int
Width of the measured part of the string.
MeasureLine(string, StringItemInfo[], int, int, int, out int, bool)
Measures part of the given string.
public virtual int MeasureLine(string line, StringItemInfo[] colorData, int pos, int len, int width, out int chars, bool exact)
Parameters
line
stringText to measure.
colorData
StringItemInfo[]Color data attached to the given string.
pos
intStart character of string to measure.
len
intNumber of characters to measure.
width
intMaximum length of the string.
chars
intReceive real number of measured chars.
exact
boolSpecifies whether the calculating should be precise.
Returns
- int
Width of the measured part of the string.