Get Started
Usage API
More information

SetRowHeight

SetRowHeight(nHeight)

Set row height value.

Parameters:

Name Type Description
nHeight pt

The row height in the range specified, measured in points.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetRowHeight(32);
builder.SaveFile("xlsx", "SetRowHeight.xlsx");
builder.CloseFile();

Resulting document