getFirstElement (NotesRichTextNavigator - JavaScript™)
Returns the first element of a specified type in a rich text item.
Defined in
NotesRichTextNavigatorSyntax
getFirstElement(type:int) :
NotesBase
Parameter | Description |
---|---|
type |
|
Return value | Description |
---|---|
Base |
EmbeddedObject , RichTextDocLink , RichTextSection ,
or RichTextTable . The requested element. Returns
null if there is no element. |
Usage
An exception occurs if you try to get an element of typeRTELEM_TYPE_TABLECELL
(7), RTELEM_TYPE_TEXTPARAGRAPH
(4),
or RTELEM_TYPE_TEXTRUN
(3). Access these elements
through NotesRichTextRange
.This method moves the current position to the position of the retrieved element.