getElement (NotesRichTextNavigator - JavaScript™)
Returns the element at the current position.
Defined in
NotesRichTextNavigatorSyntax
getElement() : NotesBase | Return value | Description |
|---|---|
NotesBase |
NotesEmbeddedObject, NotesRichTextDocLink, NotesRichTextSection,
or NotesRichTextTable. The requested element. Returns
null if there is no element. |
Usage
This method does not change the current position.An exception occurs if a valid position does not exist. You must precede this method with a valid find method.
An exception
occurs if you try to get an element of type RTELEM_TYPE_TABLECELL (7), RTELEM_TYPE_TEXTPARAGRAPH (4),
or RTELEM_TYPE_TEXTRUN (3). Access these elements
through NotesRichTextRange.