getFirstElement (RichTextNavigator - Java™)
Returns the first element of a specified type in a rich text item.
Defined in
Syntax
public Base getFirstElement(int type)
throws NotesException
Parameters
int type
- RichTextItem.RTELEM_TYPE_DOCLINK
- RichTextItem.RTELEM_TYPE_FILEATTACHMENT
- RichTextItem.RTELEM_TYPE_OLE
- RichTextItem.RTELEM_TYPE_SECTION
- RichTextItem.RTELEM_TYPE_TABLE
Return value
Base
EmbeddedObject, RichTextDocLink, RichTextSection, or RichTextTable. The requested element. You must cast the return value to the type required. Returns null if there is no element.
Usage
An exception occurs occurs if you try to get an element of type RTELEM_TYPE_TABLECELL, RTELEM_TYPE_TEXTPARAGRAPH, or RTELEM_TYPE_TEXTRUN. Access these elements through RichTextRange.
This method moves the current position to the position of the retrieved element.