LOTUSSCRIPT/COM/OLE CLASSES


GetNextElement method
Example

Returns the element of a specified type at a position in a rich text item after the current position.

Defined in

NotesRichTextNavigator

Syntax

element = notesRichTextNavigator.GetNextElement( [ type% ] [, occurrence& ] )

Parameters

type%


occurrence&
Return value

element


Usage

A run-time error occurs if you try to get an element of type RTELEM_TYPE_TABLECELL, RTELEM_TYPE_TEXTPARAGRAPH, or RTELEM_TYPE_TEXTRUN. Access these elements through NotesRichTextRange.

This method fails if a current position does not exist, for example, if you use this method without first calling FindFirstElement, FindNextElement, or FindNthElement.

This method moves the current position to the position of the retrieved element.

Language cross-reference

getNextElement method in Java RichTextNavigator class

Example