TextWhizzPosition
Classes
TextWhizzPosition
Implements
Constructors
Constructor
new TextWhizzPosition(position): TextWhizzPosition;
Parameters
| Parameter | Type |
|---|---|
position | TextPosition |
Returns
Methods
getEntry()
getEntry(): TextPosition;
Returns
TextPosition
getLineIndex()
getLineIndex(): number;
Returns the line index of the position in the text.
Returns
number
Implementation of
getOffset()
getOffset(): number;
Returns the line offset of the position in the text.
Returns
number
Implementation of
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
| Parameter | Type | Description |
|---|---|---|
anotherPosition | IPositionInText | another position in text. |
Returns
boolean
true if the positions match, false otherwise.