Get Started
Usage API
More information

SetRowHeight

SetRowHeight(nRow, nHeight)

Set the height of the specified row measured in points. A point is 1/72 inch.

Parameters:

Name Type Description
nRow number

The number of the row to set the height to.

nHeight number

The height of the column measured in points.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.SetRowHeight(0, 30);
builder.SaveFile("xlsx", "SetRowHeight.xlsx");
builder.CloseFile();

Resulting document