Type (RichTextRange - Java)

Read-only. The type of the first element in the range.

Defined in

RichTextRange

Data type

Long

Syntax

public int getType()
    throws NotesException

Legal values

  • 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_TEXTPOSITION
  • RichTextItem.RTELEM_TYPE_TEXTRUN
  • RichTextItem.RTELEM_TYPE_TEXTSTRING
  • 0 (range not explicitly defined)

Usage

RTELEM_TYPE_TEXTPOSITION and RTELEM_TYPE_TEXTSTRING are not strictly elements:

  • RTELEM_TYPE_TEXTPOSITION is a position in text that is neither paragraph nor run, but an offset within the element.
  • RTELEM_TYPE_TEXTSTRING is the position of a string found by findFirstString or findNextString.

Example