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
| Parameter | Type | Description |
|---|---|---|
position | IPositionInText | another position in text. |
Returns
boolean
true if the positions match, false otherwise.