# WorkbookDocument Type

> WorkbookDocument type alias in the Angular package: Either a WorksheetDocument or a MultiSheetDocument, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Angular > WorkbookDocument Type
- **279 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookdocument/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookdocument/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookdocument/llms-full.txt

---

Public type for WorkbookDocument.

Package: `@txtextcontrol/tx-sheet-control/angular`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Syntax

```typescript
type WorkbookDocument = WorksheetDocument | MultiSheetDocument;
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```typescript
import type { WorkbookDocument } from '@txtextcontrol/tx-sheet-control/angular';

const value: WorkbookDocument = { format: 'tx-sheet', version: 1, rows: 100, columns: 12, cells: { Region: 2 } };
console.log(value);
```

### See Also

- [TypeScript Angular API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## Nearby

- **Previous:** [WorkbookChange.source Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookchange/source-property/llms-full.txt)
- **Next:** [DocumentFontSource Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontsource/llms-full.txt)
