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

IMargins Interface

Declares margin settings.

#Declaration

TypeScript
export interface IMargins

#Remarks

Use the Table.cellMargins property to access and customize the margins of all table cells. The TableCell.margins property allows you to access and customize the margins of a particular cell.

Note

A cell’s margins property takes priority over the table’s cellMargins property.

The following example configures cell margins:

js
const subDocument = richEdit.selection.activeSubDocument;
const table = subDocument.tables.getByIndex(0);
cell.cellMargins = { left: 0, right: 0 }
cell = table.rows.getByIndex(0).cells.getByIndex(0);
cell.margins = { left: 100, right: 100 }

#Properties

#bottom Property

Specifies the margin value for the bottom edge.

#Declaration

TypeScript
bottom?: number

#Property Value

Type Description
number

The margin value in twips.

#left Property

Specifies the margin value for the left edge.

#Declaration

TypeScript
left?: number

#Property Value

Type Description
number

The margin value in twips.

#right Property

Specifies the margin value for the right edge.

#Declaration

TypeScript
right?: number

#Property Value

Type Description
number

The margin value in twips.

#top Property

Specifies the margin value for the top edge.

#Declaration

TypeScript
top?: number

#Property Value

Type Description
number

The margin value in twips.