Skip to main content

TextWhizzPosition

Classes

TextWhizzPosition

Implements

Constructors

Constructor
new TextWhizzPosition(position): TextWhizzPosition;
Parameters
ParameterType
positionTextPosition
Returns

TextWhizzPosition

Methods

getEntry()
getEntry(): TextPosition;
Returns

TextPosition

getLineIndex()
getLineIndex(): number;

Returns the line index of the position in the text.

Returns

number

Implementation of

IPositionInText.getLineIndex

getOffset()
getOffset(): number;

Returns the line offset of the position in the text.

Returns

number

Implementation of

IPositionInText.getOffset

getParagraphIndex()
getParagraphIndex(): number;

Returns the paragraph index of the position in the text.

Returns

number

Implementation of

IPositionInText.getParagraphIndex

isEqualTo()
isEqualTo(anotherPosition): boolean;

Compares the current position in text with another.

Parameters
ParameterTypeDescription
anotherPositionIPositionInTextanother position in text.
Returns

boolean

true if the positions match, false otherwise.

Implementation of

IPositionInText.isEqualTo

Was this page helpful?