Skip to main content
All docs
V24.2

TableStyleOptions Class

Contains table style options.

Declaration

export class TableStyleOptions

Remarks

Specify the tableStyleOptions property to apply/remove special formatting from the first, last, and odd columns and rows.

Note

Style options do not affect table appearance if the Normal Table or Grid Table Light style is applied to the table.

The following example applies special formatting to the first column and row of a table:

var subDocument = richEdit.selection.activeSubDocument;
var table = subDocument.tables.getByIndex(0);
if (table != null) {
    table.styleName = 'Grid Table 4 Accent 4';
    table.tableStyleOptions = { bandedColumns: false, bandedRows: false, firstColumn: true,
                                headerRow: true, lastColumn: false, totalRow: false }
}

Properties

bandedColumns Property

Specifies whether to apply special formatting to odd columns.

Declaration

bandedColumns: boolean

Property Value

Type Description
boolean

true to apply special formatting to odd columns; otherwise, false.

bandedRows Property

Specifies whether to apply special formatting to odd rows.

Declaration

bandedRows: boolean

Property Value

Type Description
boolean

true to apply special formatting to odd rows; otherwise, false.

firstColumn Property

Specifies whether to apply special formatting to the first column.

Declaration

firstColumn: boolean

Property Value

Type Description
boolean

true to apply special formatting to the first column; otherwise, false.

headerRow Property

Specifies whether to apply special formatting to the first row.

Declaration

headerRow: boolean

Property Value

Type Description
boolean

true to apply special formatting to the first row; otherwise, false.

lastColumn Property

Specifies whether to apply special formatting to the last column.

Declaration

lastColumn: boolean

Property Value

Type Description
boolean

true to apply special formatting to the last column; otherwise, false.

totalRow Property

Specifies whether to apply special formatting to the last row.

Declaration

totalRow: boolean

Property Value

Type Description
boolean

true to apply special formatting to the last row; otherwise, false.