LOTUSSCRIPT/COM/OLE CLASSES


GetLastElement method
Example

Returns the last element of a specified type in a rich text item.

Defined in

NotesRichTextNavigator

Syntax

element = notesRichTextNavigator.GetLastElement( type% )

Parameters

type%

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 moves the current position to the position of the retrieved element.

Language cross-reference

getLastElement method in Java RichTextNavigator class

Example