Skip to main content

IPositionInText

Interfaces

IPositionInText

Methods

getLineIndex()
getLineIndex(): number;

Returns the line index of the position in the text.

Returns

number

getOffset()
getOffset(): number;

Returns the line offset of the position in the text.

Returns

number

getParagraphIndex()
getParagraphIndex(): number;

Returns the paragraph index of the position in the text.

Returns

number

isEqualTo()
isEqualTo(position): boolean;

Compares the current position in text with another.

Parameters
ParameterTypeDescription
positionIPositionInTextanother position in text.
Returns

boolean

true if the positions match, false otherwise.

Was this page helpful?