SetCellMarginBottom
Specifies an amount of space which shall be left between the bottom extent of the cell contents and the border of a specific individual table cell within a table.
Syntax
expression.SetCellMarginBottom(nValue);
expression - A variable that represents a ApiTableCell class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| nValue | Required | twips | If this value is <code>null</code>, then default table cell bottom margin shall be used, otherwise override the table cell bottom margin with specified value for the current cell. |
Returns
boolean
Example
How to set the cell bottom margin for the current table cell.
- Code
- Result
// Specify the bottom margin value for the ApiTableCell object.
const doc = Api.GetDocument();
const page = doc.GetPage(0);
const table = Api.CreateTable(2, 4);
const row = table.GetRow(0);
const cell = row.GetCell(0);
const content = cell.GetContent();
const paragraph = Api.CreateParagraph();
paragraph.AddText("This is just a sample text.");
content.Push(paragraph);
cell.SetCellMarginBottom(600);
page.AddObject(table);