SetFreezePanesType

SetFreezePanesType(FreezePaneType)

Sets a type to the freeze panes.

Parameters:

Name Type Description
FreezePaneType FreezePaneType

The freeze panes type ("null" to unfreeze).

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
Api.SetFreezePanesType("column");
var oWorksheet = Api.GetActiveSheet();
var oFreezePanes = oWorksheet.GetFreezePanes();
var oRange = oFreezePanes.GetLocation();
oWorksheet.GetRange("A1").SetValue("Location: ");
oWorksheet.GetRange("B1").SetValue(oRange.GetAddress());
builder.SaveFile("xlsx", "SetFreezePanesType.xlsx");
builder.CloseFile();

Resulting document