# Calculation Class

> Calculation class in the TX Sheet Control .NET API: Shared calculation settling, external documents and formula dependency auditing.

- **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)
- **Inherits:** `TXTextControl.TXSheetControl.Server.DocumentObject`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > Calculation Class
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/llms-full.txt

---

## On This Page

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

---

## In This Section

- [Calculation.DependentsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/dependentsasync-method/llms.txt): Calculation.DependentsAsync method in the TX Sheet Control .NET API: Builds the sparse formula graph and returns direct dependent cell identities.
- [Calculation.PrecedentsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/precedentsasync-method/llms.txt): Calculation.PrecedentsAsync method in the TX Sheet Control .NET API: Returns direct precedent cell identities from the shared calculation graph.
- [Calculation.RecalculateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/recalculateasync-method/llms.txt): Calculation.RecalculateAsync method in the .NET API: Awaits asynchronous formula dependencies until the shared document has stable calculated results.
- [Calculation.RegisterFunctionAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/registerfunctionasync-method/llms.txt): Calculation.RegisterFunctionAsync method in the TX Sheet Control .NET API: Registers an asynchronous host function. Results are JSON scalars or arrays.
- [Calculation.RemoveFunctionAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/removefunctionasync-method/llms.txt): Calculation.RemoveFunctionAsync method in the .NET API: Removes a function and releases its host delegate after invalidating dependent formulas.
- [Calculation.SetExternalWorkbookAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/setexternalworkbookasync-method/llms.txt): Calculation.SetExternalWorkbookAsync method in the TX Sheet Control .NET API: Binds a snapshot of an already loaded workbook.

---

## Nearby

- **Previous:** [AnalyticsSource.TableId Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticssource/tableid-property/llms.txt)
- **Next:** [Calculation.DependentsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/calculation/dependentsasync-method/llms.txt)
