aspnetcore-js-devexpress-dot-richedit-13a144fb.md
Contains table style options.
export class TableStyleOptions
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 }
}
Specifies whether to apply special formatting to odd columns.
bandedColumns: boolean
| Type | Description |
|---|---|
| boolean |
true to apply special formatting to odd columns; otherwise, false.
|
Specifies whether to apply special formatting to odd rows.
bandedRows: boolean
| Type | Description |
|---|---|
| boolean |
true to apply special formatting to odd rows; otherwise, false.
|
Specifies whether to apply special formatting to the first column.
firstColumn: boolean
| Type | Description |
|---|---|
| boolean |
true to apply special formatting to the first column; otherwise, false.
|
Specifies whether to apply special formatting to the first row.
headerRow: boolean
| Type | Description |
|---|---|
| boolean |
true to apply special formatting to the first row; otherwise, false.
|
Specifies whether to apply special formatting to the last column.
lastColumn: boolean
| Type | Description |
|---|---|
| boolean |
true to apply special formatting to the last column; otherwise, false.
|
Specifies whether to apply special formatting to the last row.
totalRow: boolean
| Type | Description |
|---|---|
| boolean |
true to apply special formatting to the last row; otherwise, false.
|