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. |