FreezeColumns
Freezes the first column or columns of the current worksheet.
Syntax
expression.FreezeColumns(count);
expression
- A variable that represents a ApiFreezePanes class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
count | Optional | Number | 0 | Optional number of columns to freeze, or zero to unfreeze all columns. |
Returns
This method doesn't return any data.
Example
This example freezes the the first column.
- Code
- Result
let worksheet = Api.GetActiveSheet();
let freezePanes = worksheet.GetFreezePanes();
freezePanes.FreezeColumns(1);