aspnetcore-js-devexpress-dot-richedit-801f6cd6.md
Declares margin settings.
export interface IMargins
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 }
Specifies the margin value for the bottom edge.
bottom?: number
| Type | Description |
|---|---|
| number |
The margin value in twips.
|
Specifies the margin value for the left edge.
left?: number
| Type | Description |
|---|---|
| number |
The margin value in twips.
|
Specifies the margin value for the right edge.
right?: number
| Type | Description |
|---|---|
| number |
The margin value in twips.
|
Specifies the margin value for the top edge.
top?: number
| Type | Description |
|---|---|
| number |
The margin value in twips.
|