TextWhizzRange
Classes
TextWhizzRange
Implements
Constructors
Constructor
new TextWhizzRange(textRange): TextWhizzRange;
Parameters
| Parameter | Type |
|---|---|
textRange | TextRange |
Returns
Accessors
isEmpty
Get Signature
get isEmpty(): boolean;
Indicates that the text range is empty (starting position is the same as ending position).
Returns
boolean
Indicates that the text range is empty (starting position is the same as ending position).
Implementation of
isValid
Get Signature
get isValid(): boolean;
Indicates that the original text still exists and was not modified.
Returns
boolean
Indicates that the original text still exists and was not modified.
Implementation of
Methods
getEndPosition()
getEndPosition(): IPositionInText;
Returns the end position of text range.
Returns
Implementation of
getEntry()
getEntry(): TextRange;
Returns
TextRange
getFormattedText()
getFormattedText(): string;
Returns the formatted text of text range.
Returns
string
Implementation of
getLeftPosition()
getLeftPosition(): IPositionInText;
Returns the left position of text range.
Returns
Implementation of
getParagraphIndexes()
getParagraphIndexes(): number[];
Returns the indexes of paragraphs within a text range.
Returns
number[]
Remarks
Indexes are ordered from lowest to highest.
Implementation of
ITextRange.getParagraphIndexes
getPlainText()
getPlainText(): string;
Returns the plain text (without formatting) of text range.
Returns
string
Implementation of
getRightPosition()
getRightPosition(): IPositionInText;
Returns the right position of text range.
Returns
Implementation of
getStartPosition()
getStartPosition(): IPositionInText;
Returns the start position of text range.
Returns
Implementation of
isEqualTo()
isEqualTo(anotherRange): boolean;
Compares the current text range with another.
Parameters
| Parameter | Type | Description |
|---|---|---|
anotherRange | ITextRange | another text range. |
Returns
boolean
true if the ranges match, false otherwise.
Implementation of
createEntry()
static createEntry(
textWhizz,
start,
end): TextWhizzRange;
Parameters
| Parameter | Type |
|---|---|
textWhizz | any |
start | TextPosition |
end | TextPosition |