Freezes the top row or rows of the current worksheet.
Name | Type | Default | Description |
count | Number | 0 | Optional number of rows to freeze, or zero to unfreeze all rows. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFreezePanes = oWorksheet.GetFreezePanes(); oFreezePanes.FreezeRows(1); builder.SaveFile("xlsx", "FreezeRows.xlsx"); builder.CloseFile();