# Dashboard Class

> Dashboard class in the TX Sheet Control .NET API: Stable dashboard handle. Access fails after deletion or replacement of the owning document.

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

---

Stable dashboard handle. Access fails after deletion or replacement of the owning document.

### Syntax

```csharp
public class Dashboard
```

### Members

#### Properties

| Property | Description |
|---|---|
| [Id](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/id-property/llms-full.txt) | Stable dashboard identity within the document. |

#### Methods

| Method | Description |
|---|---|
| [AddWidgetAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/addwidgetasync-method/llms-full.txt) | Adds a validated widget in one undoable workbook transaction. |
| [DrillToAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/drilltoasync-method/llms-full.txt) | Returns to a zero-based ancestor level (0 is the root), clearing descendant filters without changing worksheets. A deeper or invalid level fails. |
| [DrillUpAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/drillupasync-method/llms-full.txt) | Returns one level up a widget's configured hierarchy. The root is unchanged. |
| [GetSnapshotAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/getsnapshotasync-method/llms-full.txt) | Reads detached widget definitions, independent grid placement, mode and filter context. |
| [QueryAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/queryasync-method/llms-full.txt) | Calculates a widget with shared filters without creating an editor UI. |
| [RemoveWidgetAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/removewidgetasync-method/llms-full.txt) | Removes one widget from this dashboard. |
| [RenderAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/renderasync-method/llms-full.txt) | Renders a detached visualization without an editor; dimensions are 120..4096 CSS pixels. |
| [ResetFiltersAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/resetfiltersasync-method/llms-full.txt) | Restores persisted default filters. |
| [SelectMarkAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/selectmarkasync-method/llms-full.txt) | Selects a dimensional mark, applying configured cross-filtering and drill-down in one undoable operation. Value must be null, text, boolean or a finite number. |
| [SetFiltersAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/setfiltersasync-method/llms-full.txt) | Replaces analytics-only filter context; worksheet cells and AutoFilter remain untouched. |
| [SourceDataAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/sourcedataasync-method/llms-full.txt) | Reads at most 1,000 underlying rows only when the widget explicitly permits source-data access. |
| [UpdateAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/updateasync-method/llms-full.txt) | Applies a partial definition, retaining identity. Properties use the shared camelCase JSON contract. |
| [UpdateWidgetAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/updatewidgetasync-method/llms-full.txt) | Applies partial widget settings without changing identity. |

### Examples

Build a small report using this document API and return its PDF bytes. Pass a live control with a fresh workbook; the caller owns its lifetime.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateDashboardReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Range("A1:B5").SetValuesAsync(new object?[][]
    {
        ["Region", "Revenue"], ["North", 42000], ["South", 38500], ["East", 31200], ["West", 44900]
    });

    await book.Analytics.SetSourceAsync(new AnalyticsSource { Id = "sales", Name = "Regional sales", SheetId = sheet.Id, Range = "A1:B5", HasHeaderRow = true });

    var dashboard = await book.Dashboards.AddAsync("Sales overview");
    await dashboard.AddWidgetAsync(new DashboardWidget { Id = "revenue", Type = "bar", Title = "Revenue by region", Placement = new DashboardPlacement { X = 0, Y = 0, Width = 6, Height = 4 }, Query = new AnalyticsQuery { SourceId = "sales", Dimensions = ["Region"], Measures = [new AnalyticsMeasure { Field = "Revenue", Aggregation = "SUM", Alias = "Revenue" }] }, DrillDown = ["Region"], Interactions = new DashboardInteractions { Filter = true, AllowSourceData = true } });
    return await control.SaveAsync(StreamType.PDF, new SaveOptions { OmitDashboards = true });
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Creating Dashboards](https://docs.textcontrol.com/tx-sheet-control/dashboards/creating/llms-full.txt)

### Advanced Dashboard Operations

| Method | Description |
|---|---|
| [ApplyThemeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/applythemeasync-method/llms-full.txt) | Applies Light 1–8, Medium 1–8 or Dark 1–8 by ID, preserving explicit widget overrides. |
| [ArrangeWidgetsAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/arrangewidgetsasync-method/llms-full.txt) | Aligns/distributes all widgets or packs one to four columns. Operations: compact, grid, align-left, align-right, distribute-horizontal, distribute-vertical. |
| [GetExplorationAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/getexplorationasync-method/llms-full.txt) | Returns Back/Forward availability. Viewer history is limited to 50 actions, invalidated by design/data changes and never persisted. |
| [GoBackAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/gobackasync-method/llms-full.txt) | Restores the previous viewer exploration context without reverting dashboard design. |
| [GoForwardAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/goforwardasync-method/llms-full.txt) | Reapplies a viewer exploration action after GoBackAsync. |
| [SetParameterAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/setparameterasync-method/llms-full.txt) | Changes a numeric what-if parameter. Inclusive limits and available choices are enforced atomically. |
| [SetMetricAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/setmetricasync-method/llms-full.txt) | Switches a widget to one of its configured metric queries and number formats. |
| [HighlightMarkAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/highlightmarkasync-method/llms-full.txt) | Highlights matching marks across source charts; null clears highlighting. |
| [NavigateToAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/navigatetoasync-method/llms-full.txt) | Opens a configured drill-through dashboard with a mapped equality filter and Back navigation. |
| [ToggleBranchAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/togglebranchasync-method/llms-full.txt) | Expands or collapses an ordered equality-filter path while other hierarchy branches stay summarized. |
| [GetKpiAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/getkpiasync-method/llms-full.txt) | Calculates a KPI value, baseline, absolute/percentage change, target and sparkline using the configured analytics context. |
| [ToggleSectionAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/togglesectionasync-method/llms-full.txt) | Collapses or expands a viewer section without changing its cards or worksheet values. Null toggles its current state. |
| [RenderSvgAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/rendersvgasync-method/llms-full.txt) | Renders the visible dashboard as SVG with all gradients, charts and KPI comparisons. Width is 480..4096 CSS pixels. |

---

## In This Section

- [Dashboard.AddWidgetAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/addwidgetasync-method/llms-full.txt): Dashboard.AddWidgetAsync method in the TX Sheet Control .NET API: Adds a validated widget in one undoable workbook transaction.
- [Dashboard.ApplyThemeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/applythemeasync-method/llms-full.txt): Dashboard.ApplyThemeAsync method in the TX Sheet Control .NET API: Applies Light 1–8, Medium 1–8 or Dark 1–8 by ID, preserving explicit widget overrides.
- [Dashboard.ArrangeWidgetsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/arrangewidgetsasync-method/llms-full.txt): Dashboard.ArrangeWidgetsAsync method in the .NET API: Aligns, distributes or packs widgets into one to four columns, with operations such as compact and grid.
- [Dashboard.DrillToAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/drilltoasync-method/llms-full.txt): Dashboard.DrillToAsync method in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [Dashboard.DrillUpAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/drillupasync-method/llms-full.txt): Dashboard.DrillUpAsync method in the TX Sheet Control .NET API: Returns one level up a widget's configured hierarchy. The root is unchanged.
- [Dashboard.GetExplorationAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/getexplorationasync-method/llms-full.txt): Dashboard.GetExplorationAsync method in the .NET API: Returns Back and Forward availability; viewer history holds 50 actions and is never persisted.
- [Dashboard.GetKpiAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/getkpiasync-method/llms-full.txt): Dashboard.GetKpiAsync method in the TX Sheet Control .NET API: Calculates a KPI value, baseline, absolute and percentage change, target and sparkline.
- [Dashboard.GetSnapshotAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/getsnapshotasync-method/llms-full.txt): Dashboard.GetSnapshotAsync method in the TX Sheet Control .NET API: Reads detached widget definitions, independent grid placement, mode and filter context.
- [Dashboard.GoBackAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/gobackasync-method/llms-full.txt): Dashboard.GoBackAsync method in the TX Sheet Control .NET API: Restores the previous viewer exploration context without reverting dashboard design.
- [Dashboard.GoForwardAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/goforwardasync-method/llms-full.txt): Dashboard.GoForwardAsync method in the TX Sheet Control .NET API: Reapplies a viewer exploration action after GoBackAsync.
- [Dashboard.HighlightMarkAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/highlightmarkasync-method/llms-full.txt): Dashboard.HighlightMarkAsync method in the TX Sheet Control .NET API: Highlights matching marks across source charts; null clears highlighting.
- [Dashboard.Id Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/id-property/llms-full.txt): Dashboard.Id property in the TX Sheet Control .NET API: Stable dashboard identity within the document. Covers its type string and a C# example.
- [Dashboard.NavigateToAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/navigatetoasync-method/llms-full.txt): Dashboard.NavigateToAsync method in the TX Sheet Control .NET API: Opens a configured drill-through dashboard with a mapped equality filter and Back navigation.
- [Dashboard.QueryAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/queryasync-method/llms-full.txt): Dashboard.QueryAsync method in the TX Sheet Control .NET API: Calculates a widget with shared filters without creating an editor UI.
- [Dashboard.RemoveWidgetAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/removewidgetasync-method/llms-full.txt): Dashboard.RemoveWidgetAsync method in the TX Sheet Control .NET API: Removes one widget from this dashboard. Includes the syntax and a C# example.
- [Dashboard.RenderAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/renderasync-method/llms-full.txt): Dashboard.RenderAsync method in the TX Sheet Control .NET API: Renders a detached visualization without an editor; dimensions are 120..4096 CSS pixels.
- [Dashboard.RenderSvgAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/rendersvgasync-method/llms-full.txt): Dashboard.RenderSvgAsync method in the .NET API: Renders the visible dashboard as SVG with gradients, charts and KPI comparisons, 480 to 4096 CSS pixels wide.
- [Dashboard.ResetFiltersAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/resetfiltersasync-method/llms-full.txt): Dashboard.ResetFiltersAsync method in the TX Sheet Control .NET API: Restores persisted default filters. Includes the syntax and a C# example.
- [Dashboard.SelectMarkAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/selectmarkasync-method/llms-full.txt): Dashboard.SelectMarkAsync method in the .NET API: Selects a dimensional mark, applying configured cross-filtering and drill-down in one undoable operation.
- [Dashboard.SetFiltersAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/setfiltersasync-method/llms-full.txt): Dashboard.SetFiltersAsync method in the TX Sheet Control .NET API: Replaces analytics-only filter context; worksheet cells and AutoFilter remain untouched.
- [Dashboard.SetMetricAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/setmetricasync-method/llms-full.txt): Dashboard.SetMetricAsync method in the TX Sheet Control .NET API: Switches a widget to one of its configured metric queries and number formats.
- [Dashboard.SetParameterAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/setparameterasync-method/llms-full.txt): Dashboard.SetParameterAsync method in the .NET API: Changes a numeric what-if parameter. Inclusive limits and available choices are enforced atomically.
- [Dashboard.SourceDataAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/sourcedataasync-method/llms-full.txt): Dashboard.SourceDataAsync method in the .NET API: Reads at most 1,000 underlying rows only when the widget explicitly permits source-data access.
- [Dashboard.ToggleBranchAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/togglebranchasync-method/llms-full.txt): Dashboard.ToggleBranchAsync method in the .NET API: Expands or collapses an ordered equality-filter path while other hierarchy branches stay summarized.
- [Dashboard.ToggleSectionAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/togglesectionasync-method/llms-full.txt): Dashboard.ToggleSectionAsync method in the .NET API: Collapses or expands a viewer section without changing cards or worksheet values; null toggles it.
- [Dashboard.UpdateAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/updateasync-method/llms-full.txt): Dashboard.UpdateAsync method in the TX Sheet Control .NET API: Applies a partial definition, retaining identity. Includes the syntax and a C# example.
- [Dashboard.UpdateWidgetAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/updatewidgetasync-method/llms-full.txt): Dashboard.UpdateWidgetAsync method in the TX Sheet Control .NET API: Applies partial widget settings without changing identity.

---

## Nearby

- **Previous:** [CustomFunctionOptions.MinArguments Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/customfunctionoptions/minarguments-property/llms-full.txt)
- **Next:** [Dashboard.AddWidgetAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboard/addwidgetasync-method/llms-full.txt)
