LOTUSSCRIPT/COM/OLE CLASSES


NotesRichTextTable class
Example

Represents a table in a rich text item.

Note This class is new with Release 6.

Containment

Contained by: NotesRichTextItem, NotesRichTextNavigator

Contains: NotesColorObject

Properties

AlternateColor

Color

ColumnCount

RightToLeft

RowCount

RowLabels

Style

Methods

AddRow

Remove

RemoveRow

SetAlternateColor

SetColor

Creation and access

To create a new NotesRichTextTable object, use the AppendTable method in NotesRichTextItem.

To access a NotesRichTextTable object, use the NotesRichTextNavigator methods in conjunction with the type RTELEM_TYPE_TABLE.

To access the cells in a table, use the NotesRichTextNavigator methods in conjunction with the type RTELEM_TYPE_TABLECELL. You have to devise your own code to match cells to tables. For example, to get the cells for the first or only table in an item, you might get the first RTELEM_TYPE_TABLE element, then get the number of RTELEM_TYPE_TABLECELL elements indicated by RowCount and ColumnCount. The next cell, if any, is the first cell in the second table in the item.

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
See Also