# PivotTableCollection Class

> PivotTableCollection class in the TX Sheet Control .NET API: Workbook-wide or destination-worksheet-scoped PivotTable collection. All mutations are undoable.

- **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 > PivotTableCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/llms-full.txt

---

## On This Page

- [Members](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/#members)
- [Example](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/#example)

---

## In This Section

- [PivotTableCollection.AddAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/addasync-method/llms.txt): PivotTableCollection.AddAsync method in the .NET API: Creates and materializes a pivot atomically; overlap, protection or invalid fields fail without changes.
- [PivotTableCollection.AtAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/atasync-method/llms.txt): PivotTableCollection.AtAsync method in the TX Sheet Control .NET API: Resolves a zero-based index. An out-of-range index fails.
- [PivotTableCollection.GetAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/getasync-method/llms.txt): PivotTableCollection.GetAsync method in the TX Sheet Control .NET API: Resolves a unique name or stable identity. An absent pivot fails.
- [PivotTableCollection.GetCountAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/getcountasync-method/llms.txt): PivotTableCollection.GetCountAsync method in the TX Sheet Control .NET API: Returns the number of pivots in the collection.
- [PivotTableCollection.ListAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/listasync-method/llms.txt): PivotTableCollection.ListAsync method in the TX Sheet Control .NET API: Returns detached pivot definitions in workbook order.
- [PivotTableCollection.RefreshAllAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/refreshallasync-method/llms.txt): PivotTableCollection.RefreshAllAsync method in the TX Sheet Control .NET API: Refreshes all pivots in this collection in one transaction.
- [PivotTableCollection.RemoveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/removeasync-method/llms.txt): PivotTableCollection.RemoveAsync method in the TX Sheet Control .NET API: Removes a pivot; keepValues retains its output as ordinary static cells.

---

## Nearby

- **Previous:** [PivotTable.RemoveAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottable/removeasync-method/llms.txt)
- **Next:** [PivotTableCollection.GetCountAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/pivottablecollection/getcountasync-method/llms.txt)
