Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ITableCellBorders Interface

Contains cell borders.

#Declaration

TypeScript
export interface ITableCellBorders

#Remarks

Use the TableCell.borders property to access cell borders and customize their settings.

Note

Cell border settings take priority over table border settings.

The following code example customizes cell borders:

js
const subDocument = richEdit.selection.activeSubDocument;
const table = subDocument.tables.getByIndex(0);
const cell = table.rows.getByIndex(1).cells.getByIndex(0);
cell.borders = { top: { style: 5, color: 'blue', width: 20} }

#Inheritance

ITableCellBorders

#Properties

#bottom Property

Returns a cell’s bottom border settings.

#Declaration

TypeScript
bottom?: TableBorder

#Property Value

Type Description
TableBorder

An object that contains border settings.

#left Property

Returns a cell’s left border settings.

#Declaration

TypeScript

#Property Value

Type Description
TableBorder

An object that contains border settings.

#right Property

Returns a cell’s right border settings.

#Declaration

TypeScript
right?: TableBorder

#Property Value

Type Description
TableBorder

An object that contains border settings.

#top Property

Returns a cell’s top border settings.

#Declaration

TypeScript

#Property Value

Type Description
TableBorder

An object that contains border settings.