Type (NotesRichTextRange - LotusScript®)

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

Defined in

NotesRichTextRange

Data type

Long

Syntax

To get: type& = notesRichTextRange .Type

Legal values

  • RTELEM_TYPE_DOCLINK (5)
  • RTELEM_TYPE_FILEATTACHMENT (8)
  • RTELEM_TYPE_OLE (9)
  • RTELEM_TYPE_SECTION (6)
  • RTELEM_TYPE_TABLE (1)
  • RTELEM_TYPE_TABLECELL (7)
  • RTELEM_TYPE_TEXTPARAGRAPH (4)
  • RTELEM_TYPE_TEXTPOSITION (10)
  • RTELEM_TYPE_TEXTRUN (3)
  • RTELEM_TYPE_TEXTSTRING (11)
  • 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