# Workbook Class

> Workbook class in the TX Sheet Control .NET API: Asynchronous workbook editing, formatting, calculation, loading and saving.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > Workbook Class
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/#syntax)
- [Members](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/#members)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/#see-also)

---

## In This Section

- [Workbook.AddConditionalRuleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/addconditionalruleasync-method/llms.txt): Workbook.AddConditionalRuleAsync method in the TX Sheet Control .NET API: Validates and adds an active worksheet conditional rule.
- [Workbook.Analytics Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/analytics-property/llms.txt): Workbook.Analytics property in the TX Sheet Control .NET API: Workbook-wide data discovery, profiling, relationships and queries.
- [Workbook.ApplyCellStyleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/applycellstyleasync-method/llms.txt): Workbook.ApplyCellStyleAsync method in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [Workbook.BatchAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/batchasync-method/llms.txt): Workbook.BatchAsync method in the TX Sheet Control .NET API: Collects synchronous workbook operations and applies them as one atomic undoable transaction.
- [Workbook.Calculation Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/calculation-property/llms.txt): Workbook.Calculation property in the TX Sheet Control .NET API, with its syntax, its type Calculation, a C# example and remarks on awaiting tasks and handles.
- [Workbook.CellTypes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/celltypes-property/llms.txt): Workbook.CellTypes property in the TX Sheet Control .NET API, with its syntax, its type CellTypes, a C# example and remarks on awaiting tasks and handles.
- [Workbook.ClearFiltersAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/clearfiltersasync-method/llms.txt): Workbook.ClearFiltersAsync method in the TX Sheet Control .NET API: Clears active worksheet filter criteria while retaining its filter range.
- [Workbook.ConsolidateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/consolidateasync-method/llms.txt): Workbook.ConsolidateAsync method in the TX Sheet Control .NET API: Aggregates A1 source ranges using the supplied function/destination options.
- [Workbook.CreateCellStyleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/createcellstyleasync-method/llms.txt): Workbook.CreateCellStyleAsync method in the TX Sheet Control .NET API: Creates a workbook-wide named style from formatting and optional included-property flags.
- [Workbook.CreateMailMergeTemplateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/createmailmergetemplateasync-method/llms.txt): Workbook.CreateMailMergeTemplateAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Workbook.Dashboards Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/dashboards-property/llms.txt): Workbook.Dashboards property in the TX Sheet Control .NET API: First-class dashboard views persisted in TXWB documents. Includes the syntax and a C# example.
- [Workbook.DeleteConditionalRuleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/deleteconditionalruleasync-method/llms.txt): Workbook.DeleteConditionalRuleAsync method in the .NET API: Removes an active worksheet conditional rule by stable identifier and records an undoable edit.
- [Workbook.Events Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/events-property/llms.txt): Workbook.Events property in the TX Sheet Control .NET API, with its syntax, its type WorkbookEvents, a C# example and remarks on awaiting tasks and handles.
- [Workbook.GetActiveViewAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/getactiveviewasync-method/llms.txt): Workbook.GetActiveViewAsync method in the TX Sheet Control .NET API: Returns the sole active worksheet or dashboard viewport.
- [Workbook.GetAutoFilterAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/getautofilterasync-method/llms.txt): Workbook.GetAutoFilterAsync method in the TX Sheet Control .NET API: Returns a detached active worksheet filter definition, or JSON null when no filter exists.
- [Workbook.GetInfoAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/getinfoasync-method/llms.txt): Workbook.GetInfoAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Workbook.GetMailMergeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/getmailmergeasync-method/llms.txt): Workbook.GetMailMergeAsync method in the TX Sheet Control .NET API, with the parameter cancellationToken, the return type Task<JsonElement> and a C# example.
- [Workbook.GetUserNameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/getusernameasync-method/llms.txt): Workbook.GetUserNameAsync method in the TX Sheet Control .NET API: Reads the runtime comment author independently of the selected worksheet.
- [Workbook.History Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/history-property/llms.txt): Workbook.History property in the TX Sheet Control .NET API, with its syntax, its type History, a C# example and remarks on awaiting tasks and handles.
- [Workbook.ListConditionalRulesAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/listconditionalrulesasync-method/llms.txt): Workbook.ListConditionalRulesAsync method in the .NET API, with the parameters range and cancellationToken, the return type Task<JsonElement> and a C# example.
- [Workbook.ListNamedStylesAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/listnamedstylesasync-method/llms.txt): Workbook.ListNamedStylesAsync method in the TX Sheet Control .NET API: Returns detached named cell styles shared by every worksheet in this workbook.
- [Workbook.LoadAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/loadasync-method/llms.txt): Workbook.LoadAsync method in the TX Sheet Control .NET API: Loads a binary document with the same reusable options as the owning control.
- [Workbook.LoadTextAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/loadtextasync-method/llms.txt): Workbook.LoadTextAsync method in the TX Sheet Control .NET API: Loads CSV, XML or JSON text with flat configuration. Includes the syntax and a C# example.
- [Workbook.MergeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/mergeasync-method/llms.txt): Workbook.MergeAsync method in the TX Sheet Control .NET API: Merges application data into an isolated document snapshot before replacing the current workbook.
- [Workbook.Names Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/names-property/llms.txt): Workbook.Names property in the TX Sheet Control .NET API, with its syntax, its type NameCollection, a C# example and remarks on awaiting tasks and handles.
- [Workbook.PivotTables Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/pivottables-property/llms.txt): Workbook.PivotTables property in the TX Sheet Control .NET API: The workbook-wide collection of operational pivot reports.
- [Workbook.PreviewConsolidateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/previewconsolidateasync-method/llms.txt): Workbook.PreviewConsolidateAsync method in the .NET API: Plans aggregation from A1 source ranges into an active worksheet destination without editing cells.
- [Workbook.PreviewRemoveDuplicatesAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/previewremoveduplicatesasync-method/llms.txt): Workbook.PreviewRemoveDuplicatesAsync method in the TX Sheet Control .NET API: Finds duplicate rows in an active worksheet A1 range without editing cells.
- [Workbook.PreviewTextToColumnsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/previewtexttocolumnsasync-method/llms.txt): Workbook.PreviewTextToColumnsAsync method in the TX Sheet Control .NET API: Plans a text split without editing cells. Includes the syntax and a C# example.
- [Workbook.RecalculateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/recalculateasync-method/llms.txt): Workbook.RecalculateAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Workbook.RemoveDuplicatesAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/removeduplicatesasync-method/llms.txt): Workbook.RemoveDuplicatesAsync method in the TX Sheet Control .NET API: Removes duplicate rows using the requested columns/header options.
- [Workbook.SaveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/saveasync-method/llms.txt): Workbook.SaveAsync method in the TX Sheet Control .NET API: Saves a detached binary document snapshot; export metadata never changes the live workbook.
- [Workbook.SaveTextAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/savetextasync-method/llms.txt): Workbook.SaveTextAsync method in the TX Sheet Control .NET API, with its syntax, the return type Task<string> and a C# example.
- [Workbook.Search Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/search-property/llms.txt): Workbook.Search property in the TX Sheet Control .NET API, with its syntax, its type Search, a C# example and remarks on awaiting tasks and handles.
- [Workbook.SetActiveViewAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/setactiveviewasync-method/llms.txt): Workbook.SetActiveViewAsync method in the TX Sheet Control .NET API: Selects an existing worksheet or dashboard. Includes the syntax and a C# example.
- [Workbook.SetAutoFilterAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/setautofilterasync-method/llms.txt): Workbook.SetAutoFilterAsync method in the TX Sheet Control .NET API: Configures the active worksheet filter from a portable range/criteria object.
- [Workbook.SetMailMergeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/setmailmergeasync-method/llms.txt): Workbook.SetMailMergeAsync method in the TX Sheet Control .NET API, with the parameters metadata and cancellationToken, the return type Task and a C# example.
- [Workbook.SetThemeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/setthemeasync-method/llms.txt): Workbook.SetThemeAsync method in the TX Sheet Control .NET API: Replaces workbook-wide theme colors with the validated ordered color palette.
- [Workbook.SetUserNameAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/setusernameasync-method/llms.txt): Workbook.SetUserNameAsync method in the TX Sheet Control .NET API: Changes the current comment author; this string is not saved as a workbook setting.
- [Workbook.Sheets Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/sheets-property/llms.txt): Workbook.Sheets property in the TX Sheet Control .NET API, with its syntax, its type SheetCollection, a C# example and remarks on awaiting tasks and handles.
- [Workbook.SortRangeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/sortrangeasync-method/llms.txt): Workbook.SortRangeAsync method in the TX Sheet Control .NET API: Sorts an A1 range on the active worksheet using validated sort keys.
- [Workbook.TextToColumnsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/texttocolumnsasync-method/llms.txt): Workbook.TextToColumnsAsync method in the TX Sheet Control .NET API: Splits text in an active worksheet A1 range. Includes the syntax and a C# example.
- [Workbook.UpdateCellStyleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/updatecellstyleasync-method/llms.txt): Workbook.UpdateCellStyleAsync method in the TX Sheet Control .NET API: Updates a workbook-wide named style. Includes the syntax and a C# example.
- [Workbook.UpdateConditionalRuleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/updateconditionalruleasync-method/llms.txt): Workbook.UpdateConditionalRuleAsync method in the .NET API: Applies a validated partial definition to an existing active worksheet conditional rule.

---

## Nearby

- **Previous:** [ValidationRule.Values Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/values-property/llms.txt)
- **Next:** [Workbook.AddConditionalRuleAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/workbook/addconditionalruleasync-method/llms.txt)
