Table of Contents

Method GetCharIndexFromPosition

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

GetCharIndexFromPosition(Point)

Converts given Point value to the index of character.

public virtual int GetCharIndexFromPosition(Point position)

Parameters

position Point

Point 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.