Get Started
Usage API
More information

SetHeight

SetHeight([nValue])

Set the height of the current table row within the current table.

Parameters:

Name Type Default Description
nValue EMU null

The row height in English measure units.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("pptx");
oPresentation = Api.GetPresentation();
oTable = Api.CreateTable(2, 4);
oRow = oTable.GetRow(0);
oRow.SetHeight(30 * 36000);
oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "SetHeight.pptx");
builder.CloseFile();

Resulting document