Method GetCharIndexFromPosition
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
GetCharIndexFromPosition(Point)
Converts given Point value to the index of character.
public virtual int GetCharIndexFromPosition(Point position)
Parameters
position
PointPoint value where Y-Coordinate represents index of line and X-Coordinate - index of character in this line.
Returns
- int
Index of character if the text considered as a single string.