Back to Devexpress

IMargins Interface

aspnetcore-js-devexpress-dot-richedit-801f6cd6.md

latest1.9 KB
Original Source

IMargins Interface

Declares margin settings.

Declaration

ts
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

ts
bottom?: number

Property Value

TypeDescription
number

The margin value in twips.

|

left Property

Specifies the margin value for the left edge.

Declaration

ts
left?: number

Property Value

TypeDescription
number

The margin value in twips.

|

right Property

Specifies the margin value for the right edge.

Declaration

ts
right?: number

Property Value

TypeDescription
number

The margin value in twips.

|

top Property

Specifies the margin value for the top edge.

Declaration

ts
top?: number

Property Value

TypeDescription
number

The margin value in twips.

|