Table of Contents

Method GetPositionFromCharIndex

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

GetPositionFromCharIndex(int)

Converts given character index to position as Point value.

public virtual Point GetPositionFromCharIndex(int charIndex)

Parameters

charIndex int

Specifies index of character if the text considered as a single string.

Returns

Point

Point value where Y-Coordinate represents index of line and X-Coordinate - index of character in this line.