Method GetCharIndexFromPosition
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
GetCharIndexFromPosition(Point)
When implemented by a class, converts given Point value to the index of character.
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.