Sheet
On this page
Base sheet object supporting both sparse and dense storage modes.
In sparse mode, cells are stored as properties keyed by A1 references (e.g. sheet["A1"]). In dense mode, cells are stored in the "!data" 2D array.
interface Sheet
Properties
| Name | Type | Required | Description |
|---|---|---|---|
!data | DenseSheetData | No | Dense cell storage: 2D array indexed by [row][col] |
!type | "sheet" | "chart" | No | Sheet type: "sheet" for worksheets, "chart" for chart sheets |
!ref | string | No | Used range reference (e.g. "A1:D10") |
!margins | MarginInfo | No | Page margin settings |
Index signatures
Sparse cell storage: cells keyed by A1-style references
[cell: string]: any;