Back to Website
Show / Hide Table of Contents

Class TextWhizzRange

Package: @aurigma/design-atoms-text

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
get isEmpty(): boolean;
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
get isValid(): boolean;
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
Type Description
TextWhizzRange

getEndPosition()

Declaration
getEndPosition(): IPositionInText;
Returns
Type Description
IPositionInText

getEntry()

Declaration
getEntry(): TextWhizz.TextRange;
Returns
Type Description
TextWhizz.TextRange

getFormattedText()

Declaration
getFormattedText(): string;
Returns
Type Description
string

getLeftPosition()

Declaration
getLeftPosition(): IPositionInText;
Returns
Type Description
IPositionInText

getParagraphIndexes()

Declaration
getParagraphIndexes(): number[];
Returns
Type Description
number[]

getPlainText()

Declaration
getPlainText(): string;
Returns
Type Description
string

getRightPosition()

Declaration
getRightPosition(): IPositionInText;
Returns
Type Description
IPositionInText

getStartPosition()

Declaration
getStartPosition(): IPositionInText;
Returns
Type Description
IPositionInText

isEqualTo(anotherRange)

Declaration
isEqualTo(anotherRange: ITextRange): boolean;
Parameters
Type Name Description
ITextRange anotherRange
Returns
Type Description
boolean
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback