SetRowHeight

SetRowHeight(nRow, nHeight)

Sets 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 row measured in points.

Returns:

This method doesn't return any data.

Example

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

Resulting document