SetTableBorderRight
Sets the border which will be displayed on the right of the current table.
Syntax
expression.SetTableBorderRight(type, size, fill);
expression - A variable that represents an ApiTablePr class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| type | Required | BorderType | The right border style. | |
| size | Required | mm | The width of the current right border. | |
| fill | Required | ApiFill | The color or pattern used to fill the current border. |
Returns
boolean
Example
Set the right table border through the table properties in a presentation.
// Passing the "none" border style removes the border and needs no fill.
// Apply a dark gray border to the right of 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.SetTableBorderRight("single", 1, Api.CreateSolidFill(Api.RGB(51, 51, 51)));
style.SetTablePr(tablePr);
slide.RemoveAllObjects();
slide.AddObject(table);