SetFreezePanesType

function SetFreezePanesType(FreezePaneType: FreezePaneType = null): void

Description

Sets a type to the freeze panes.

Parameters

FreezePaneTypeFreezePaneTypedefault: null

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

Returns

void

Try It

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());

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).