SetTableRowPr
Sets the table row properties to the current style.
Syntax
expression.SetTableRowPr(oTableRowPr);
expression - A variable that represents a ApiStyle class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| oTableRowPr | Required | ApiTableRowPr | The table row properties that will be set. |
Returns
Example
This example shows how to set the table row properties to the current style.
- Code
- Result
// How to create table row properties for style and set its height.
// Update table row properties in the style.
let doc = Api.GetDocument();
let tableStyle = doc.CreateStyle("CustomTableStyle", "table");
let tableRowPr = Api.CreateTableRowPr();
tableRowPr.SetHeight("atLeast", 1440);
tableStyle.SetTableRowPr(tableRowPr);
let table = Api.CreateTable(2, 2);
table.SetWidth("percent", 100);
doc.Push(table);
table.SetStyle(tableStyle);
table.SetTableLook(true, true, true, true, false, false);