FreezeAt
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.
Syntax
expression.FreezeAt(frozenRange);
expression
- A variable that represents a ApiFreezePanes class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
frozenRange | Required | ApiRange | String |
Returns
This method doesn't return any data.
Example
This example freezes the specified range in top-and-left-most pane of the worksheet.
var oWorksheet = Api.GetActiveSheet();
var oFreezePanes = oWorksheet.GetFreezePanes();
var oRange = Api.GetRange('H2:K4');
oFreezePanes.FreezeAt(oRange);