Class TextWhizzRange
Constructors
(constructor)(textRange)
Constructs a new instance of the TextWhizzRange
class
Declaration
constructor(textRange: TextWhizz.TextRange);
Parameters
Type |
Name |
Description |
TextWhizz.TextRange |
textRange |
|
Properties
isEmpty
Indicates that the text range is empty (starting position is the same as ending position).
Declaration
Property Value
Type |
Description |
boolean |
Indicates that the text range is empty (starting position is the same as ending position).
|
isValid
Indicates that the original text still exists and was not modified.
Declaration
Property Value
Type |
Description |
boolean |
Indicates that the original text still exists and was not modified.
|
Methods
createEntry(textWhizz, start, end)
Declaration
static createEntry(textWhizz: typeof TextWhizz, start: TextWhizz.TextPosition, end: TextWhizz.TextPosition): TextWhizzRange;
Parameters
Type |
Name |
Description |
typeof TextWhizz |
textWhizz |
|
TextWhizz.TextPosition |
start |
|
TextWhizz.TextPosition |
end |
|
Returns
getEndPosition()
Declaration
getEndPosition(): IPositionInText;
Returns
getEntry()
Declaration
getEntry(): TextWhizz.TextRange;
Returns
Type |
Description |
TextWhizz.TextRange |
|
getFormattedText()
Declaration
getFormattedText(): string;
Returns
getLeftPosition()
Declaration
getLeftPosition(): IPositionInText;
Returns
getParagraphIndexes()
Declaration
getParagraphIndexes(): number[];
Returns
Type |
Description |
number[] |
|
getPlainText()
Declaration
Returns
getRightPosition()
Declaration
getRightPosition(): IPositionInText;
Returns
getStartPosition()
Declaration
getStartPosition(): IPositionInText;
Returns
isEqualTo(anotherRange)
Declaration
isEqualTo(anotherRange: ITextRange): boolean;
Parameters
Returns