SetCellBorderBottom
Sets the border which shall be displayed at the bottom of the current table cell.
Syntax
expression.SetCellBorderBottom(fSize, oApiFill);
expression - A variable that represents a ApiTableCell class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| fSize | Required | mm | The width of the current border. | |
| oApiFill | Required | ApiFill | The color or pattern used to fill the current border. |
Returns
boolean
Example
How to set cell bottom border with its fill color.
- Code
- Result
// Create table and set its cell bottom border.
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 fill = Api.CreateSolidFill(Api.CreateRGBColor(51, 51, 51));
cell.SetCellBorderBottom(2, fill);
page.AddObject(table);