GetElement (NotesRichTextNavigator - LotusScript®)

Returns the element at the current position.

Defined in

NotesRichTextNavigator

Syntax

element = notesRichTextNavigator .GetElement

Return value

element

NotesEmbeddedObject, NotesRichTextDocLink, NotesRichTextSection, or NotesRichTextTable. The requested element.

Usage

This method does not change the current position.

A run-time error occurs if a valid position does not exist. You must precede this method with a valid find method.

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.

Example