Appearance
Function: getCellValue()
ts
function getCellValue(
worksheet: Worksheet,
row: number,
col: number): any;Defined in: src/excel/excel.tsx:883
Get the value of a cell.
Parameters
| Parameter | Type | Description |
|---|---|---|
worksheet | Worksheet | The ExcelJS worksheet. |
row | number | The 1-based row index. |
col | number | The 1-based column index. |
Returns
any
The value of the cell.
Example
ts
const status = getCellValue(worksheet, 2, 4);
const name = getCellValue(worksheet, 3, 1);