# Workbook Class

> Workbook class in the TX Sheet Control Angular package: Licensed workbook model. Active-sheet methods use the selected worksheet.

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

---

## On This Page

- [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/#constructor)
- [Members](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/#members)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/#see-also)
- [Additional and Inherited Members](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/#additional-and-inherited-members)

---

## In This Section

- [Workbook.activeSheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/activesheetid-property/llms.txt): Workbook.activeSheetId property in the TX Sheet Control Angular package, with its syntax, its type string and a TypeScript example.
- [Workbook.activeSheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/activesheetname-property/llms.txt): Workbook.activeSheetName property in the TX Sheet Control Angular package, with its type string and a TypeScript example.
- [Workbook.activeView Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/activeview-property/llms.txt): Workbook.activeView property in the TX Sheet Control Angular package: The sole sheet or dashboard view displayed by the integrated editor.
- [Workbook.addConditionalRule Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/addconditionalrule-method/llms.txt): Workbook.addConditionalRule method in the TX Sheet Control Angular package: Adds a validated active-sheet rule; returns its stable ID (maximum 200 rules).
- [Workbook.addSparklines Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/addsparklines-method/llms.txt): Workbook.addSparklines method in the TX Sheet Control Angular package: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.analytics Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/analytics-property/llms.txt): Workbook.analytics property in the TX Sheet Control Angular package: Workbook-wide deterministic data profiling, relationships and asynchronous queries.
- [Workbook.applyCellStyle Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/applycellstyle-method/llms.txt): Workbook.applyCellStyle method in the TX Sheet Control Angular package: Applies a named style to the active-sheet range in one undo operation.
- [Workbook.autoExpand Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/autoexpand-property/llms.txt): Workbook.autoExpand property in the TX Sheet Control Angular package, with its syntax, its type boolean and a TypeScript example.
- [Workbook.batch Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/batch-method/llms.txt): Workbook.batch method in the Angular package: Runs an action as one batch with an optional source string and returns void, with a TypeScript example.
- [Workbook.calculation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/calculation-property/llms.txt): Workbook.calculation property in the TX Sheet Control Angular package, with its type WorkbookCalculation and a TypeScript example.
- [Workbook.cellTypes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/celltypes-property/llms.txt): Workbook.cellTypes property in the TX Sheet Control Angular package, with its type CellTypeRegistry and a TypeScript example.
- [Workbook.clearFilters Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/clearfilters-method/llms.txt): Workbook.clearFilters method in the TX Sheet Control Angular package: Removes filter criteria while keeping the filter range.
- [Workbook.clearSparklines Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/clearsparklines-method/llms.txt): Workbook.clearSparklines method in the TX Sheet Control Angular package: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.columns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/columns-property/llms.txt): Workbook.columns property in the TX Sheet Control Angular package, with its syntax, its type number and a TypeScript example.
- [Workbook.consolidate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/consolidate-method/llms.txt): Workbook.consolidate method in the TX Sheet Control Angular package: Consolidates same-sheet ranges in one undo operation.
- [Workbook.createCellStyle Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/createcellstyle-method/llms.txt): Workbook.createCellStyle method in the TX Sheet Control Angular package: Creates a workbook-wide style; returns its stable ID.
- [Workbook.createMailMergeTemplate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/createmailmergetemplate-method/llms.txt): Workbook.createMailMergeTemplate method in the TX Sheet Control Angular package, with the return type MailMergeTemplate and a TypeScript example.
- [Workbook.dashboards Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/dashboards-property/llms.txt): Workbook.dashboards property in the TX Sheet Control Angular package: Independent first-class dashboard definitions, persisted by .txwb and .ods.
- [Workbook.dateSystem Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/datesystem-property/llms.txt): Workbook.dateSystem property in the TX Sheet Control Angular package, with its type "1900" | "1904" and a TypeScript example.
- [Workbook.deleteConditionalRule Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/deleteconditionalrule-method/llms.txt): Workbook.deleteConditionalRule method in the TX Sheet Control Angular package: Removes the active-sheet conditional rule in one undo operation.
- [Workbook.ensureSize Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/ensuresize-method/llms.txt): Workbook.ensureSize method in the TX Sheet Control Angular package, with the return type boolean and a TypeScript example.
- [Workbook.events Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/events-property/llms.txt): Workbook.events property in the TX Sheet Control Angular package, with its type WorkbookEvents and a TypeScript example.
- [Workbook.getAutoFilter Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/getautofilter-method/llms.txt): Workbook.getAutoFilter method in the TX Sheet Control Angular package: Returns the active-sheet filter as a detached snapshot.
- [Workbook.getMailMerge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/getmailmerge-method/llms.txt): Workbook.getMailMerge method in the TX Sheet Control Angular package, with the return type MailMergeMetadata | null and a TypeScript example.
- [Workbook.getSparklineGroups Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/getsparklinegroups-method/llms.txt): Workbook.getSparklineGroups method in the TX Sheet Control Angular package: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.history Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/history-property/llms.txt): Workbook.history property in the TX Sheet Control Angular package, with its type { undo(): void; redo(): void; } and a TypeScript example.
- [Workbook.listConditionalRules Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/listconditionalrules-method/llms.txt): Workbook.listConditionalRules method in the TX Sheet Control Angular package: Lists detached active-sheet conditional rules, optionally intersecting a range.
- [Workbook.listNamedStyles Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/listnamedstyles-method/llms.txt): Workbook.listNamedStyles method in the TX Sheet Control Angular package: Lists detached workbook-wide named style definitions.
- [Workbook.load Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/load-method/llms.txt): Workbook.load method in the TX Sheet Control Angular package: Loads XLSX/TXWB bytes or CSV/XML/JSON text/UTF-8 bytes atomically.
- [Workbook.maxColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/maxcolumns-property/llms.txt): Workbook.maxColumns property in the TX Sheet Control Angular package, with its syntax, its type number and a TypeScript example.
- [Workbook.maxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/maxrows-property/llms.txt): Workbook.maxRows property in the TX Sheet Control Angular package, with its syntax, its type number and a TypeScript example.
- [Workbook.merge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/merge-method/llms.txt): Workbook.merge method in the Angular package: Merges a data record with optional MailMergeOptions and returns warnings, formula errors and repeat ranges.
- [Workbook.names Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/names-property/llms.txt): Workbook.names property in the TX Sheet Control Angular package, with its type NamedRangeCollection and a TypeScript example.
- [Workbook.onChange Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/onchange-method/llms.txt): Workbook.onChange method in the TX Sheet Control Angular package, with the return type () => void and a TypeScript example.
- [Workbook.previewConsolidate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/previewconsolidate-method/llms.txt): Workbook.previewConsolidate method in the TX Sheet Control Angular package: Previews a bounded consolidation without modifying the destination.
- [Workbook.previewRemoveDuplicates Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/previewremoveduplicates-method/llms.txt): Workbook.previewRemoveDuplicates method in the TX Sheet Control Angular package: Previews retained/removed rows without changing data or history.
- [Workbook.previewTextToColumns Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/previewtexttocolumns-method/llms.txt): Workbook.previewTextToColumns method in the TX Sheet Control Angular package: Previews splitting a single source column without writing cells.
- [Workbook.recalculate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/recalculate-method/llms.txt): Workbook.recalculate method in the Angular package, with its syntax, no parameters, the return type void, a TypeScript example and remarks on handles.
- [Workbook.removeDuplicates Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/removeduplicates-method/llms.txt): Workbook.removeDuplicates method in the TX Sheet Control Angular package: Removes duplicates in the selected range in one undo operation.
- [Workbook.rows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/rows-property/llms.txt): Workbook.rows property in the TX Sheet Control Angular package, with its syntax, its type number and a TypeScript example.
- [Workbook.save Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/save-method/llms.txt): Workbook.save method in the TX Sheet Control Angular package: Saves a snapshot with reusable format-specific options; PDF is save-only.
- [Workbook.saveText Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/savetext-method/llms.txt): Workbook.saveText method in the TX Sheet Control Angular package: Saves CSV, XML or JSON text with flat settings. Omits a generated CSV BOM.
- [Workbook.search Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/search-property/llms.txt): Workbook.search property in the TX Sheet Control Angular package, with its type WorkbookSearch and a TypeScript example.
- [Workbook.setAutoFilter Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/setautofilter-method/llms.txt): Workbook.setAutoFilter method in the TX Sheet Control Angular package: Sets/removes the active-sheet filter; criteria are native validated filter definitions.
- [Workbook.setFormulaProvider Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/setformulaprovider-method/llms.txt): Workbook.setFormulaProvider method in the TX Sheet Control Angular package: The setFormulaProvider operation of Workbook.
- [Workbook.setMailMerge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/setmailmerge-method/llms.txt): Workbook.setMailMerge method in the Angular package: Sets the MailMergeMetadata of the workbook, or null, and returns void, with a TypeScript example.
- [Workbook.setTheme Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/settheme-method/llms.txt): Workbook.setTheme method in the TX Sheet Control Angular package: Changes the workbook's twelve native theme colors in one undo operation.
- [Workbook.sheets Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/sheets-property/llms.txt): Workbook.sheets property in the TX Sheet Control Angular package, with its type SheetCollection and a TypeScript example.
- [Workbook.sortRange Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/sortrange-method/llms.txt): Workbook.sortRange method in the TX Sheet Control Angular package: Sorts the active sheet in one undoable operation; rejects merged ranges and invalid keys.
- [Workbook.textToColumns Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/texttocolumns-method/llms.txt): Workbook.textToColumns method in the Angular package: Applies the split in one undo operation; rejects occupied targets unless overwrite is true.
- [Workbook.updateCellStyle Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/updatecellstyle-method/llms.txt): Workbook.updateCellStyle method in the TX Sheet Control Angular package: Updates a named style; affected cells on every sheet inherit the update.
- [Workbook.updateConditionalRule Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/updateconditionalrule-method/llms.txt): Workbook.updateConditionalRule method in the TX Sheet Control Angular package: Updates the active-sheet rule with the given ID; rejects unknown IDs.
- [Workbook.updateSparklineGroup Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/updatesparklinegroup-method/llms.txt): Workbook.updateSparklineGroup method in the TX Sheet Control Angular package: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.userName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/username-property/llms.txt): Workbook.userName property in the TX Sheet Control Angular package, with its syntax, its type string and a TypeScript example.

---

## Nearby

- **Previous:** [TXSheetControlComponent.workbookChange Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/txsheetcontrolcomponent/workbookchange-property/llms.txt)
- **Next:** [Workbook.activeSheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/workbook/activesheetid-property/llms.txt)
