Back to Website
Show / Hide Table of Contents

Interface IPositionInText

Package: @aurigma/design-atoms-text

Methods

getLineIndex()

Returns the line index of the position in the text.

Declaration
getLineIndex(): number;
Returns
Type Description
number

getOffset()

Returns the line offset of the position in the text.

Declaration
getOffset(): number;
Returns
Type Description
number

getParagraphIndex()

Returns the paragraph index of the position in the text.

Declaration
getParagraphIndex(): number;
Returns
Type Description
number

isEqualTo(position)

Compares the current position in text with another.

Declaration
isEqualTo(position: IPositionInText): boolean;
Parameters
Type Name Description
IPositionInText position

another position in text.

Returns
Type Description
boolean

true if the positions match, false otherwise.

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