Skip to content

Function: removeRows()

ts
function removeRows(worksheet: Worksheet, rowIndexes: number[]): void;

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

Remove rows at the specified indexes. Rows are removed from bottom to top to preserve correct indexes.

Parameters

ParameterTypeDescription
worksheetWorksheetThe ExcelJS worksheet.
rowIndexesnumber[]An array of 1-based row indexes to remove.

Returns

void

Example

ts
removeRows(worksheet, [2, 5, 7]);

Matterway Assistant SDK Documentation