# Workbook Class

> Workbook class in the browser JavaScript API: Licensed workbook model. Active-sheet methods use the selected worksheet; retained handles bind explicit sheets.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > Workbook Class
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/llms-full.txt

---

## On This Page

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

---

## In This Section

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

---

## Nearby

- **Previous:** [version Constant](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/version-constant/llms.txt)
- **Next:** [Workbook.activeSheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/activesheetid-property/llms.txt)
