Back to Devexpress

TableBorders Class

aspnetcore-js-devexpress-dot-richedit-496b3320.md

latest2.1 KB
Original Source

TableBorders Class

Contains table borders.

Declaration

ts
export class TableBorders extends TableBordersBase implements ITableBorders

Remarks

Use the Table.borders property to access table borders and customize their settings.

Note

Cell border settings take priority over table border settings.

The following code example customizes table borders:

js
const subDocument = richEdit.selection.activeSubDocument;
const table = subDocument.tables.getByIndex(0);
const outerBorder = {style: 1, width: 30, color: '#4974a5'};
const innerBorder = {style: 4, width: 15, color: '#d3d3d3'};
table.borders = { bottom: outerBorder, top: outerBorder, left: outerBorder, right: outerBorder,
                  insideHorizontal: innerBorder, insideVertical: innerBorder};

Implements

ITableBorders

Inherited Members

bottom

left

right

top

Inheritance

TableBordersBase TableBorders

Properties

insideHorizontal Property

Specifies settings of horizontal borders displayed between table rows.

Declaration

ts
insideHorizontal: TableBorder

Property Value

TypeDescription
TableBorder

An object that contains border settings.

|

insideVertical Property

Specifies settings of vertical borders displayed between table columns.

Declaration

ts
insideVertical: TableBorder

Property Value

TypeDescription
TableBorder

An object that contains border settings.

|