BeginSection (NotesRichTextItem - LotusScript®)
Inserts a section in a rich text item.
Defined in
Syntax
Call notesRichTextItem .BeginSection( title , [ titleStyle ] , [ barColor ] , [ expand ] )
Parameters
title
String. The title of the section.
titleStyle
NotesRichTextStyle. Optional. The style of the title of the section.
barColor
NotesColorObject. Optional. The color of the section bar.
expand
Boolean. Optional.
- 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.
In an open document in edit mode (the NotesDocument via NotesUIDocument.Document), changes made to rich text will not appear on screen immediately as they would with fields of other types. There is no method to cause this update to occur. You must close and reopen the document to see changes.