Click or drag to resize

XlsWorksheet SetRowHeightPixels Method

Sets the height of the specified row.
Examples
The following code illustrates how to set height for a row:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set row height</para><para>worksheet.SetRowHeightPixels(3, 150);</para><para>//Save to file</para><para>workbook.SaveToFile("SetRowHeightPixels.xlsx");</para>

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void SetRowHeightPixels(
	int rowIndex,
	double height
)

Parameters

rowIndex
Type: System Int32
Row index.
height
Type: System Double
Height.

Implements

IWorksheet SetRowHeightPixels(Int32, Double)
See Also