Sets the frozen cells in the active worksheet view. The range provided corresponds to the cells that will be frozen in the top- and left-most pane.
Name | Type | Description |
frozenRange | ApiRange | String | A range that represents the cells to be frozen. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFreezePanes = oWorksheet.GetFreezePanes(); var oRange = Api.GetRange("H2:K4"); oFreezePanes.FreezeAt(oRange); builder.SaveFile("xlsx", "FreezeAt.xlsx"); builder.CloseFile();