SetTableBorderBottom
Sets the border which will be displayed at the bottom of the current table.
Syntax
expression.SetTableBorderBottom(type, size, fill);
expression - A variable that represents an ApiTablePr class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| type | Required | BorderType | The bottom border style. | |
| size | Required | mm | The width of the current bottom border. | |
| fill | Required | ApiFill | The color or pattern used to fill the current border. |
Returns
boolean
Example
Set the bottom table border through the table properties in a presentation.
// The border is described by its style, its width in millimeters and its fill.
// Apply a dark gray border below the table.
const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);
const table = Api.CreateTable(3, 3);
const style = presentation.GetStyle("No Style, Table Grid");
table.SetStyle(style);
const tablePr = style.GetTablePr();
tablePr.SetTableBorderBottom("single", 1, Api.CreateSolidFill(Api.RGB(51, 51, 51)));
style.SetTablePr(tablePr);
slide.RemoveAllObjects();
slide.AddObject(table);