# TypeScript Angular API

> Embed the editor in Angular with TXSheetControlComponent: its option and load/save interfaces, StreamType, localization functions and language resources.

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

---

The Angular integration is part of the editor package and is imported from `@txtextcontrol/tx-sheet-control/angular`. Its declarations list the [TXSheetControlComponent](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/txsheetcontrolcomponent/llms-full.txt) with the classes, interfaces, type aliases, functions, constants and enumeration an Angular application uses with it.

The entries describe the public package surface. Workbook handles are obtained from their owner; the related object-model types are not an instruction to import extra packages.

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

### Classes

| Class | Description |
|---|---|
| [Spreadsheet](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/spreadsheet/llms-full.txt) | Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations. |
| [TXSheetControlComponent](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/txsheetcontrolcomponent/llms-full.txt) | Angular lifecycle adapter that mounts the editor outside the Angular change-detection zone. |
| [Workbook](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/llms-full.txt) | Licensed workbook model. Active-sheet methods use the selected worksheet; retained handles bind explicit sheets. |

### Interfaces

| Interface | Description |
|---|---|
| [ControlAreas](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/controlareas/llms-full.txt) | Public contracts; workbook JSON never contains DOM or downloaded font objects. |
| [LoadOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/loadoptions/llms-full.txt) | Reusable load settings. Input buffers are copied; cancellation/validation never partially replace a workbook. |
| [LoadResult](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/loadresult/llms-full.txt) | Import notices returned after an atomic document replacement. |
| [SaveOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/saveoptions/llms-full.txt) | Reusable save settings shared by every host. Metadata is export-only and overrides loaded document metadata. |
| [SpreadsheetOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/spreadsheetoptions/llms-full.txt) | Initial document, control-area visibility, appearance and dimensions for a mounted editor. |
| [WorkbookChange](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookchange/llms-full.txt) | Notification source for a completed document change; batched edits emit one notification. |

### Type Aliases

| Type | Description |
|---|---|
| [LocalizationKey](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/localizationkey/llms-full.txt) | Public type for LocalizationKey. |
| [LocalizationResources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/localizationresources/llms-full.txt) | Public type for LocalizationResources. |
| [WorkbookDocument](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookdocument/llms-full.txt) | Public type for WorkbookDocument. |

### Enumerations

| Enumeration | Description |
|---|---|
| [StreamType](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/streamtype/llms-full.txt) | Public enumeration for StreamType. |

### Functions

| Function | Description |
|---|---|
| [getLanguageResources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/getlanguageresources-function/llms-full.txt) | Public function for getLanguageResources. |
| [getRegisteredLanguages](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/getregisteredlanguages-function/llms-full.txt) | Public function for getRegisteredLanguages. |
| [registerLanguage](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/registerlanguage-function/llms-full.txt) | Public function for registerLanguage. |

### Constants

| Constant | Description |
|---|---|
| [englishResources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/englishresources-constant/llms-full.txt) | Public constant for englishResources. |
| [germanResources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/germanresources-constant/llms-full.txt) | Public constant for germanResources. |

### Pivot Tables

Use the ready editor instance to call `editor.workbook.pivotTables` and `editor.ui.pivotTables`. The browser [Pivot Tables guide](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pivot-tables/llms-full.txt) includes the shared field settings, contextual ribbon and task pane. Angular requires no separate pivot package.

### OpenDocument Settings

The Angular package re-exports `OpenDocumentSpreadsheetLoadOptions` and `OpenDocumentSpreadsheetSaveOptions`. Use them with the component's shared load/save methods and `StreamType.OpenDocumentSpreadsheet`. See the [load settings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/opendocumentspreadsheetloadoptions/llms-full.txt), [save settings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/opendocumentspreadsheetsaveoptions/llms-full.txt) and [ODS guide](https://docs.textcontrol.com/tx-sheet-control/document-processing/ods/llms-full.txt).

### Document Font Types

- [DocumentFontSource](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontsource/llms-full.txt)
- [FontResolutionRequest](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/fontresolutionrequest/llms-full.txt)
- [DocumentFontLoadOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/llms-full.txt)
- [opendocumentspreadsheetloadoptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/opendocumentspreadsheetloadoptions/llms-full.txt)
- [opendocumentspreadsheetsaveoptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/opendocumentspreadsheetsaveoptions/llms-full.txt)

---

## In This Section

- [ControlAreas Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/controlareas/llms-full.txt): ControlAreas interface in the TX Sheet Control Angular package: Public contracts; workbook JSON never contains DOM or downloaded font objects.
- [DocumentFontLoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontloadoptions/llms-full.txt): DocumentFontLoadOptions interface in the Angular package: Document font bytes, asynchronous resolution and family substitutions for loading workbooks.
- [DocumentFontSource Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/documentfontsource/llms-full.txt): DocumentFontSource interface in the Angular package: A document-scoped TrueType font face with base64 bytes, weight, style and fallback aliases.
- [englishResources Constant](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/englishresources-constant/llms-full.txt): englishResources constant in the Angular package, with its type Readonly<Record<LocalizationKey, string>>, its ES module import and a TypeScript example.
- [FontResolutionRequest Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/fontresolutionrequest/llms-full.txt): FontResolutionRequest interface in the TX Sheet Control Angular package: The font family, style and text coverage requested while a document loads.
- [germanResources Constant](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/germanresources-constant/llms-full.txt): germanResources constant in the Angular package: German resource strings as Readonly<Record<LocalizationKey, string>>, with its import and a TypeScript example.
- [getLanguageResources Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/getlanguageresources-function/llms-full.txt): getLanguageResources function in the Angular package: Returns the resources of an optional language as Readonly<Record<LocalizationKey, string>>.
- [getRegisteredLanguages Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/getregisteredlanguages-function/llms-full.txt): getRegisteredLanguages function in the TX Sheet Control Angular package, with the return type readonly string[] and a TypeScript example.
- [LoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/loadoptions/llms-full.txt): LoadOptions interface in the Angular package: Reusable load settings. Input buffers are copied; cancellation/validation never partially replace a workbook.
- [LoadResult Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/loadresult/llms-full.txt): LoadResult interface in the TX Sheet Control Angular package: Import notices returned after an atomic document replacement.
- [LocalizationKey Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/localizationkey/llms-full.txt): LocalizationKey type alias in the Angular package: The union of resource keys such as ribbon.home and ui.font, with its syntax and a TypeScript example.
- [LocalizationResources Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/localizationresources/llms-full.txt): LocalizationResources type alias in the Angular package: A Partial<Record<LocalizationKey, string>> of resource overrides, with its syntax and an example.
- [OpenDocumentSpreadsheetLoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/opendocumentspreadsheetloadoptions/llms-full.txt): OpenDocumentSpreadsheetLoadOptions interface in the TX Sheet Control Angular package: Format settings used by openDocumentSpreadsheet in LoadOptions.
- [OpenDocumentSpreadsheetSaveOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/opendocumentspreadsheetsaveoptions/llms-full.txt): OpenDocumentSpreadsheetSaveOptions interface in the TX Sheet Control Angular package: Format settings used by openDocumentSpreadsheet in SaveOptions.
- [registerLanguage Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/registerlanguage-function/llms-full.txt): registerLanguage function in the Angular package: Registers LocalizationResources under a language name and returns void, with a TypeScript example.
- [SaveOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/saveoptions/llms-full.txt): SaveOptions interface in the TX Sheet Control Angular package: Reusable save settings shared by every host. Includes the syntax and a TypeScript example.
- [Spreadsheet Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/spreadsheet/llms-full.txt): Spreadsheet class in the Angular package: Coordinates the editor lifecycle and delegates document and interaction behavior to focused operations.
- [SpreadsheetOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/spreadsheetoptions/llms-full.txt): SpreadsheetOptions interface in the TX Sheet Control Angular package: Initial document, control-area visibility, appearance and dimensions for a mounted editor.
- [StreamType Enumeration](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/streamtype/llms-full.txt): StreamType enumeration in the Angular package: SpreadsheetML, InternalWorkbookFormat, PDF, CSV, XML, JSON and OpenDocumentSpreadsheet, with an example.
- [TXSheetControlComponent Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/txsheetcontrolcomponent/llms-full.txt): TXSheetControlComponent class in the Angular package: Angular lifecycle adapter that mounts the editor outside the Angular change-detection zone.
- [Workbook Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/llms-full.txt): Workbook class in the TX Sheet Control Angular package: Licensed workbook model. Active-sheet methods use the selected worksheet.
- [WorkbookChange Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookchange/llms-full.txt): WorkbookChange interface in the TX Sheet Control Angular package: Notification source for a completed document change; batched edits emit one notification.
- [WorkbookDocument Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbookdocument/llms-full.txt): WorkbookDocument type alias in the Angular package: Either a WorksheetDocument or a MultiSheetDocument, with its syntax and a TypeScript example.

---

## Nearby

- **Previous:** [DocumentFontLoadOptions.resolve Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/documentfontloadoptions/resolve-property/llms-full.txt)
- **Next:** [ControlAreas Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/controlareas/llms-full.txt)
