SetHeight

SetHeight([nValue])

Sets the height to the current table row.

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");
var oPresentation = Api.GetPresentation();
var oTable = Api.CreateTable(2, 4);
var oRow = oTable.GetRow(0);
oRow.SetHeight(30 * 36000);
var oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "SetHeight.pptx");
builder.CloseFile();

Resulting document