Skip to content

Function: freezeRows()

ts
function freezeRows(worksheet: Worksheet, count?: number): void;

Defined in: src/excel/excel.tsx:721

Freeze the top N rows in a worksheet.

Parameters

ParameterTypeDefault valueDescription
worksheetWorksheetundefinedThe ExcelJS worksheet.
countnumber1Number of rows to freeze from the top. Defaults to 1.

Returns

void

Example

ts
freezeRows(worksheet);
freezeRows(worksheet, 3);

Matterway Assistant SDK Documentation