Appearance
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
| Parameter | Type | Description |
|---|---|---|
worksheet | Worksheet | The ExcelJS worksheet. |
rowIndexes | number[] | An array of 1-based row indexes to remove. |
Returns
void
Example
ts
removeRows(worksheet, [2, 5, 7]);