Back to Devexpress

TableStyleOptions Class

aspnetcore-js-devexpress-dot-richedit-13a144fb.md

latest2.7 KB
Original Source

TableStyleOptions Class

Contains table style options.

Declaration

ts
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:

js
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

ts
bandedColumns: boolean

Property Value

TypeDescription
boolean

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

|

bandedRows Property

Specifies whether to apply special formatting to odd rows.

Declaration

ts
bandedRows: boolean

Property Value

TypeDescription
boolean

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

|

firstColumn Property

Specifies whether to apply special formatting to the first column.

Declaration

ts
firstColumn: boolean

Property Value

TypeDescription
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

ts
headerRow: boolean

Property Value

TypeDescription
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

ts
lastColumn: boolean

Property Value

TypeDescription
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

ts
totalRow: boolean

Property Value

TypeDescription
boolean

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

|