findNthElement (NotesRichTextNavigator - JavaScript™)
Moves the current position to the element at a specified position within elements of the same type.
Defined in
NotesRichTextNavigatorSyntax
findNthElement(type:int) :
boolean
findNthElement(type:int, occurrence:int)
: boolean
Parameter | Description |
---|---|
int type |
|
int occurrence |
The position of the element within elements of the same type in the rich text item. Must be a positive integer. Defaults to 1. |
Return value | Description |
---|---|
boolean |
|
Usage
This method returns false if the specified position does not exist.You can use this method as a basis for future navigation, for example, with findNextElement if the occurrence is explicitly specified.