beginSection (NotesRichTextItem - JavaScript)

Inserts a section in a rich text item.

Defined in

NotesRichTextItem

Syntax

beginSection(title:string) : void

beginSection(title:string, titlestyle:NotesRichTextStyle) : void

beginSection(title:string, titlestyle:NotesRichTextStyle, barcolor:NotesColorObject, expand:boolean) : void

Parameter Description
title The title of the section.
titlestyle The style of the title of the section. See NotesRichTextStyle.
ColorObject barcolor The color of the section bar. See NotesColorObject,.
boolean expand
  • true expands the section
  • false (default) collapses the section

Usage

By default the insertion occurs at the end of the item. You can change the insertion point with beginInsert and endInsert.

You cannot create a section containing existing rich text. You must start the section with beginSection, append rich text, and end the section with endSection.