Working with sections in Java classes

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

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

Property

Data type

Description

getBarColor

ColorObject

Color of the section bar. Use setBarColor to set the color of the section bar.

isExpanded and setExpanded

boolean

true if the section is expanded.

getTitle and setTitle

String

Title of the section.

getTitleStyle

RichTextStyle

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 RichTextItem.