Table of Contents

Method AbsolutePositionToTextPoint

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

AbsolutePositionToTextPoint(IList<string>, int, string)

Converts given absolute position to position as Point value.

public static Point AbsolutePositionToTextPoint(IList<string> list, int position, string lineTerminator)

Parameters

list IList<string>

Strings collection to convert.

position int

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

lineTerminator string

Specifies line terminator.

Returns

Point

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

AbsolutePositionToTextPoint(int)

Converts given absolute position to position as Point value.

public virtual Point AbsolutePositionToTextPoint(int position)

Parameters

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