Skip to main content

SetRowHeight

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

Syntax

expression.SetRowHeight(nRow, nHeight);

expression - A variable that represents a ApiWorksheet class.

Parameters

NameRequired/OptionalData typeDefaultDescription
nRowRequirednumberThe number of the row to set the height to.
nHeightRequirednumberThe height of the row measured in points.

Returns

boolean

Example

Modify row height for better visibility in a spreadsheet.

// How do I resize a row to be taller or shorter in a spreadsheet?

// Set the vertical dimension of a row to match your content needs in a spreadsheet.

let worksheet = Api.GetActiveSheet();
worksheet.SetRowHeight(0, 30);