FreezeRows

function FreezeRows(count: Number = 0): void

Description

Freezes the top row or rows of the current worksheet.

Parameters

countNumberdefault: 0

Optional number of rows to freeze, or zero to unfreeze all rows.

Returns

void

Try It

var oWorksheet = Api.GetActiveSheet();
var oFreezePanes = oWorksheet.GetFreezePanes();
oFreezePanes.FreezeRows(1);

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).