Method TextPointToAbsolutePosition
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
TextPointToAbsolutePosition(IList<string>, Point, string)
Converts given Point value to the absolute position.
public static int TextPointToAbsolutePosition(IList<string> list, Point position, string lineTerminator)
Parameters
list
IList<string>Strings collection to convert.
position
PointPoint value where Y-Coordinate represents index of line and X-Coordinate - index of character in this line.
lineTerminator
stringSpecifies line terminator.
Returns
- int
Absolute position of given point.
TextPointToAbsolutePosition(Point)
Converts given Point value to the absolute position.
public virtual int TextPointToAbsolutePosition(Point position)
Parameters
position
PointPoint value where Y-Coordinate represents index of line and X-Coordinate - index of character in this line.
Returns
- int
Absolute position of given point.