Appearance
Function: duplicateRow()
ts
function duplicateRow(
ws: Worksheet,
sourceRowNumber: number,
targetRowNumber: number): void;Defined in: src/excel/excel.tsx:82
Duplicate a row to a target position with the same values and styles.
Parameters
| Parameter | Type | Description |
|---|---|---|
ws | Worksheet | The worksheet containing the rows. |
sourceRowNumber | number | The row number to copy from. |
targetRowNumber | number | The row number where the copy is inserted. |
Returns
void
Example
ts
const worksheet = workbook.getWorksheet('Inventory');
duplicateRow(worksheet, 1, 5);