Table of Contents

Method TextPointToAbsolutePosition

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

TextPointToAbsolutePosition(IList<string>, Point, string)

Converts given Point value to the absolute position.

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

Parameters

list IList<string>

Strings collection to convert.

position Point

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

lineTerminator string

Specifies line terminator.

Returns

int

Absolute position of given point.

TextPointToAbsolutePosition(Point)

Converts given Point value to the absolute position.

public virtual int TextPointToAbsolutePosition(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

Absolute position of given point.