Skip to main content

SetHeight

Sets the height to the current table row.

Syntax

expression.SetHeight(nValue);

expression - A variable that represents a ApiTableRow class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nValueOptionalEMUThe row height in English measure units.

Returns

boolean

Example

How to set a height of the row.

// Create a table and change its rows height.

const doc = Api.GetDocument();
const page = doc.GetPage(0);

const table = Api.CreateTable(2, 4);
const row = table.GetRow(0);
row.SetHeight(30 * 36000);

page.AddObject(table);