Skip to main content
All docs
V24.2

IMargins Interface

Declares margin settings.

Declaration

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:

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

bottom?: number

Property Value

Type Description
number

The margin value in twips.

left Property

Specifies the margin value for the left edge.

Declaration

left?: number

Property Value

Type Description
number

The margin value in twips.

right Property

Specifies the margin value for the right edge.

Declaration

right?: number

Property Value

Type Description
number

The margin value in twips.

top Property

Specifies the margin value for the top edge.

Declaration

top?: number

Property Value

Type Description
number

The margin value in twips.