Working with sections in LotusScript® classes

To access a section in a rich text item, use the NotesRichTextNavigator methods in conjunction with the type RTELEM_TYPE_SECTION.

Once you access a section, the NotesRichTextSection class lets you remove the section and use the following properties:

Property

Data type

Description

BarColor

NotesColorObject

(Read-only) Color of the section bar. Use SetBarColor to set the color of the section bar.

IsExpanded

Boolean

(Read-write) True if the section is expanded.

Title

String

(Read-write) Title of the section.

TitleStyle

NotesRichTextStyle

(Read-only) Style of the section title. Use SetTitleStyle to set the title style of the section bar.

To create a section in a rich text item, use BeginSection and EndSection in NotesRichTextItem.