# Workbook Class

> Workbook class in the Node.js TypeScript API: Licensed workbook model. Active-sheet methods use the selected worksheet TypeScript Node.js API.

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

---

## On This Page

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

---

## In This Section

- [Workbook.activeSheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/activesheetid-property/llms.txt): Workbook.activeSheetId property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [Workbook.activeSheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/activesheetname-property/llms.txt): Workbook.activeSheetName property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [Workbook.activeView Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/activeview-property/llms.txt): Workbook.activeView property in the TX Sheet Control TypeScript API for Node.js: The sole sheet or dashboard view displayed by the integrated editor.
- [Workbook.addConditionalRule Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/addconditionalrule-method/llms.txt): Workbook.addConditionalRule method in the Node.js TypeScript API: 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/nodejs/workbook/addsparklines-method/llms.txt): Workbook.addSparklines method in the TX Sheet Control TypeScript API for Node.js: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.analytics Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/analytics-property/llms.txt): Workbook.analytics property in the Node.js TypeScript API: Workbook-wide deterministic data profiling, relationships and asynchronous queries.
- [Workbook.applyCellStyle Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/applycellstyle-method/llms.txt): Workbook.applyCellStyle method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/autoexpand-property/llms.txt): Workbook.autoExpand property in the TX Sheet Control TypeScript API for Node.js, with its type boolean and a TypeScript example.
- [Workbook.batch Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/batch-method/llms.txt): Workbook.batch method in the Node.js TypeScript API: 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/nodejs/workbook/calculation-property/llms.txt): Workbook.calculation property in the TX Sheet Control TypeScript API for Node.js, with its type WorkbookCalculation and a TypeScript example.
- [Workbook.cellTypes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/celltypes-property/llms.txt): Workbook.cellTypes property in the TX Sheet Control TypeScript API for Node.js, with its type CellTypeRegistry and a TypeScript example.
- [Workbook.clearFilters Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/clearfilters-method/llms.txt): Workbook.clearFilters method in the TX Sheet Control TypeScript API for Node.js: Removes filter criteria while keeping the filter range.
- [Workbook.clearSparklines Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/clearsparklines-method/llms.txt): Workbook.clearSparklines method in the TX Sheet Control TypeScript API for Node.js: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.columns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/columns-property/llms.txt): Workbook.columns property in the TX Sheet Control TypeScript API for Node.js, with its type number and a TypeScript example.
- [Workbook.consolidate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/consolidate-method/llms.txt): Workbook.consolidate method in the TX Sheet Control TypeScript API for Node.js: Consolidates same-sheet ranges in one undo operation.
- [Workbook.createCellStyle Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/createcellstyle-method/llms.txt): Workbook.createCellStyle method in the TX Sheet Control TypeScript API for Node.js: Creates a workbook-wide style; returns its stable ID.
- [Workbook.createMailMergeTemplate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/createmailmergetemplate-method/llms.txt): Workbook.createMailMergeTemplate method in the TX Sheet Control TypeScript API for Node.js, with the return type MailMergeTemplate and a TypeScript example.
- [Workbook.dashboards Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/dashboards-property/llms.txt): Workbook.dashboards property in the TX Sheet Control TypeScript API for Node.js: Independent first-class dashboard definitions, persisted by .txwb and .ods.
- [Workbook.dateSystem Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/datesystem-property/llms.txt): Workbook.dateSystem property in the TX Sheet Control TypeScript API for Node.js, with its type "1900" | "1904" and a TypeScript example.
- [Workbook.deleteConditionalRule Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/deleteconditionalrule-method/llms.txt): Workbook.deleteConditionalRule method in the TX Sheet Control TypeScript API for Node.js: Removes the active-sheet conditional rule in one undo operation.
- [Workbook.ensureSize Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/ensuresize-method/llms.txt): Workbook.ensureSize method in the TX Sheet Control TypeScript API for Node.js, with the return type boolean and a TypeScript example.
- [Workbook.events Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/events-property/llms.txt): Workbook.events property in the TX Sheet Control TypeScript API for Node.js, with its type WorkbookEvents and a TypeScript example.
- [Workbook.getAutoFilter Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/getautofilter-method/llms.txt): Workbook.getAutoFilter method in the TX Sheet Control TypeScript API for Node.js: Returns the active-sheet filter as a detached snapshot.
- [Workbook.getMailMerge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/getmailmerge-method/llms.txt): Workbook.getMailMerge method in the TX Sheet Control TypeScript API for Node.js, with the return type MailMergeMetadata | null and a TypeScript example.
- [Workbook.getSparklineGroups Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/getsparklinegroups-method/llms.txt): Workbook.getSparklineGroups method in the TX Sheet Control TypeScript API for Node.js: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.history Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/history-property/llms.txt): Workbook.history property in the TX Sheet Control TypeScript API for Node.js, with its type { undo(): void; redo(): void; } and a TypeScript example.
- [Workbook.listConditionalRules Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/listconditionalrules-method/llms.txt): Workbook.listConditionalRules method in the Node.js TypeScript API: Lists detached active-sheet conditional rules, optionally intersecting a range.
- [Workbook.listNamedStyles Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/listnamedstyles-method/llms.txt): Workbook.listNamedStyles method in the TX Sheet Control TypeScript API for Node.js: Lists detached workbook-wide named style definitions.
- [Workbook.load Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/load-method/llms.txt): Workbook.load method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/maxcolumns-property/llms.txt): Workbook.maxColumns property in the TX Sheet Control TypeScript API for Node.js, with its type number and a TypeScript example.
- [Workbook.maxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/maxrows-property/llms.txt): Workbook.maxRows property in the TX Sheet Control TypeScript API for Node.js, with its type number and a TypeScript example.
- [Workbook.merge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/merge-method/llms.txt): Workbook.merge method in the Node.js TypeScript API: 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/nodejs/workbook/names-property/llms.txt): Workbook.names property in the TX Sheet Control TypeScript API for Node.js, with its type NamedRangeCollection and a TypeScript example.
- [Workbook.onChange Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/onchange-method/llms.txt): Workbook.onChange method in the TX Sheet Control TypeScript API for Node.js, with the return type () => void and a TypeScript example.
- [Workbook.pivotTables Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/pivottables-property/llms.txt): Workbook.pivotTables property in the TX Sheet Control TypeScript API for Node.js: The pivot collection for the workbook.
- [Workbook.previewConsolidate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/previewconsolidate-method/llms.txt): Workbook.previewConsolidate method in the TX Sheet Control TypeScript API for Node.js: Previews a bounded consolidation without modifying the destination.
- [Workbook.previewRemoveDuplicates Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/previewremoveduplicates-method/llms.txt): Workbook.previewRemoveDuplicates method in the TX Sheet Control TypeScript API for Node.js: Previews retained/removed rows without changing data or history.
- [Workbook.previewTextToColumns Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/previewtexttocolumns-method/llms.txt): Workbook.previewTextToColumns method in the TX Sheet Control TypeScript API for Node.js: Previews splitting a single source column without writing cells.
- [Workbook.recalculate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/recalculate-method/llms.txt): Workbook.recalculate method in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [Workbook.removeDuplicates Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/removeduplicates-method/llms.txt): Workbook.removeDuplicates method in the TX Sheet Control TypeScript API for Node.js: Removes duplicates in the selected range in one undo operation.
- [Workbook.rows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/rows-property/llms.txt): Workbook.rows property in the TX Sheet Control TypeScript API for Node.js, with its syntax, its type number and a TypeScript example.
- [Workbook.save Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/save-method/llms.txt): Workbook.save method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/savetext-method/llms.txt): Workbook.saveText method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/search-property/llms.txt): Workbook.search property in the TX Sheet Control TypeScript API for Node.js, with its type WorkbookSearch and a TypeScript example.
- [Workbook.setAutoFilter Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/setautofilter-method/llms.txt): Workbook.setAutoFilter method in the Node.js TypeScript API: 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/nodejs/workbook/setformulaprovider-method/llms.txt): Workbook.setFormulaProvider method in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [Workbook.setMailMerge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/setmailmerge-method/llms.txt): Workbook.setMailMerge method in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.
- [Workbook.setTheme Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/settheme-method/llms.txt): Workbook.setTheme method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/sheets-property/llms.txt): Workbook.sheets property in the TX Sheet Control TypeScript API for Node.js, with its type SheetCollection and a TypeScript example.
- [Workbook.sortRange Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/sortrange-method/llms.txt): Workbook.sortRange method in the TX Sheet Control TypeScript API for Node.js: Sorts the active sheet in one undoable operation.
- [Workbook.textToColumns Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/texttocolumns-method/llms.txt): Workbook.textToColumns method in the Node.js TypeScript API: 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/nodejs/workbook/updatecellstyle-method/llms.txt): Workbook.updateCellStyle method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/updateconditionalrule-method/llms.txt): Workbook.updateConditionalRule method in the TX Sheet Control TypeScript API for Node.js: 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/nodejs/workbook/updatesparklinegroup-method/llms.txt): Workbook.updateSparklineGroup method in the TX Sheet Control TypeScript API for Node.js: Active-sheet sparkline operation; validated, persisted and undoable.
- [Workbook.userName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/username-property/llms.txt): Workbook.userName property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.

---

## Nearby

- **Previous:** [ValidationEvent.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/validationevent/sheetid-property/llms.txt)
- **Next:** [Workbook.activeSheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbook/activesheetid-property/llms.txt)
