SetHeight
Sets the total height of the current table, distributing it evenly among the table rows. The value is applied as a minimum height for each row, so a row can be taller if its content requires more space.
Syntax
expression.SetHeight(nValue);
expression - A variable that represents an ApiTable class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| nValue | Required | EMU | The table height in English measure units. |
Returns
EMU | null
Example
Set the total height of a table in a PDF.
// Make a table a specific overall height in a PDF.
// Distribute the requested height proportionally among the table rows in a PDF.
const doc = Api.GetDocument();
const page = doc.GetPage(0);
const table = Api.CreateTable(3, 3);
page.AddObject(table);
table.SetHeight(Api.MillimetersToEmus(80));