RichTextTable (Java)

Represents a table in a rich text item.

Note: This class is new with Release 6.5.

Containment

Contained by: RichTextItem, RichTextNavigator

Contains: ColorObject

Properties

AlternateColor through getAlternateColor

Color through getColor

ColumnCount through getColumnCount

IsRightToLeft through isRightToLeft and setRightToLeft

RowCount through getRowCount

RowLabels through getRowLabels and setRowLabels

Style through getStyle and setStyle

Methods

addRow

recycle

remove

removeRow

setAlternateColor

setColor

Creation and access

To create a new RichTextTable object, use the appendTable method in RichTextItem.

To access a RichTextTable object, use the RichTextNavigator methods in conjunction with the type RTELEM_TYPE_TABLE.

To access the cells in a table, use the RichTextNavigator methods in conjunction with the type RTELEM_TYPE_TABLECELL.

The order of cells in a table is by row, then column.

You cannot determine the contents of a cell (text paragraphs, text runs, doclinks, and so on) unless you know the exact structure of the rich text item.

Example