findFirstElement (NotesRichTextNavigator - JavaScript)

Moves the current position to the first element of a specified type in a rich text item.

Defined in

NotesRichTextNavigator

Syntax

findFirstElement(type:int) : boolean
Parameter Description
int type The type of element:
  • RichTextItem.RTELEM_TYPE_DOCLINK
  • RichTextItem.RTELEM_TYPE_FILEATTACHMENT
  • RichTextItem.RTELEM_TYPE_OLE
  • RichTextItem.RTELEM_TYPE_SECTION
  • RichTextItem.RTELEM_TYPE_TABLE
  • RichTextItem.RTELEM_TYPE_TABLECELL
  • RichTextItem.RTELEM_TYPE_TEXTPARAGRAPH
  • RichTextItem.RTELEM_TYPE_TEXTRUN
Return value Description
boolean
  • true if the element exists and the current position is reset
  • false if the element does not exist and the current position is not reset