Appearance
Function: deleteColumn()
ts
function deleteColumn(worksheet: Worksheet, index: number): void;Defined in: packages/excel-tools/lib/excel.d.ts:272
Delete a column at the specified index.
Parameters
| Parameter | Type | Description |
|---|---|---|
worksheet | Worksheet | The ExcelJS worksheet. |
index | number | The 1-based column index to delete. |
Returns
void
Example
ts
deleteColumn(worksheet, 3);