appendTable (NotesRichTextItem - JavaScript)

Inserts a table in a rich text item. The table text takes the current style of the item.

Defined in

NotesRichTextItem

Syntax

appendTable(rows:int, columns:int) : void

appendTable(rows:int, columns:int, labels:java.util.Vector) : void

appendTable(rows:int, columns:int, labels:java.util.Vector, leftmargin:int, rtpstyles:java.util.Vector) : void

A default is taken if the signature does not include the parameter or the parameter is specified as null.

Parameter Description
rows Number of rows in the table.
columns Number of columns in the table.
labels Elements are of type string. Text of labels for a tabbed table. The number of elements must equal the number of rows. Specifying this parameter appends a tabbed table. The default is a basic table.
leftmargin Left margin of the table in twips. Note the following values:
  • 567 RULER_ONE_CENTIMETER
  • 1440 RULER_ONE_INCH (default)
rtpstyles Elements are of type RichTextParagraphStyle. Creates a table with fixed-width columns and style attributes as specified. The default is an auto-width table. The vector must contain one element for each column in the table in sequence. Explicitly set the first line left margin and left margin, which control the start of text relative to the start of the column, and the right margin, which controls column width.

Usage

By default the insertion occurs at the end of the item. You can change the insertion point with beginInsert and endInsert.