# WorkSheet

Source: /xlsx-format/api-reference/interfaces/worksheet

Worksheet object with column, row, merge, protection, and filter metadata

```ts
interface WorkSheet extends Sheet
```

## Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` !data ` | [` DenseSheetData `](</xlsx-format/api-reference/types/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 `](</xlsx-format/api-reference/interfaces/margininfo/>) | No | Page margin settings |
| ` !cols ` | [` ColInfo `](</xlsx-format/api-reference/interfaces/colinfo/>)` [] ` | No | Column properties array (index corresponds to column index) |
| ` !rows ` | [` RowInfo `](</xlsx-format/api-reference/interfaces/rowinfo/>)` [] ` | No | Row properties array (index corresponds to row index) |
| ` !merges ` | [` Range `](</xlsx-format/api-reference/interfaces/range/>)` [] ` | No | Array of merged cell ranges |
| ` !views ` | [` SheetView `](</xlsx-format/api-reference/interfaces/sheetview/>)` [] ` | No | Sheet view definitions such as frozen panes |
| ` !protect ` | [` ProtectInfo `](</xlsx-format/api-reference/interfaces/protectinfo/>) | No | Sheet protection settings |
| ` !autofilter ` | [` AutoFilterInfo `](</xlsx-format/api-reference/interfaces/autofilterinfo/>) | No | AutoFilter definition |

## Index signatures

Sparse cell storage: cells keyed by A1-style references

```ts
[cell: string]: any;
```
