# Dimension Class

> Dimension class in the TX Sheet Control .NET API: Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

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

---

Worksheet-scoped server API contract; requests retain document identity and cancellation semantics.

### Syntax

```csharp
public class Dimension
```

### Members

#### Properties

| Property | Description |
|---|---|
| [Index](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/index-property/llms-full.txt) |  |

#### Methods

| Method | Description |
|---|---|
| [GetHiddenAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/gethiddenasync-method/llms-full.txt) | Reads explicit row/column hiding independently of AutoFilter. |
| [GetSizeAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/getsizeasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [ResetAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/resetasync-method/llms-full.txt) | Removes the dimension size override without changing visibility. |
| [SetHeightAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/setheightasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |
| [SetHiddenAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/sethiddenasync-method/llms-full.txt) | Hides or reveals this dimension, retaining its stored size. Undoable; worksheet protection applies. |
| [SetWidthAsync](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/setwidthasync-method/llms-full.txt) | Performs an operation on this document without activating another worksheet. |

### 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[]> CreateDimensionReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");

    var dimension = sheet.Rows.At(0);
    await dimension.SetHeightAsync(new { points = 28 });
    return await control.SaveAsync(StreamType.PDF);
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [Dimension.GetHiddenAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/gethiddenasync-method/llms-full.txt): Dimension.GetHiddenAsync method in the TX Sheet Control .NET API: Reads explicit row/column hiding independently of AutoFilter.
- [Dimension.GetSizeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/getsizeasync-method/llms-full.txt): Dimension.GetSizeAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Dimension.Index Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/index-property/llms-full.txt): Dimension.Index property in the TX Sheet Control .NET API, with its syntax, its type int, a C# example and remarks on awaiting tasks and handles.
- [Dimension.ResetAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/resetasync-method/llms-full.txt): Dimension.ResetAsync method in the TX Sheet Control .NET API: Removes the dimension size override without changing visibility.
- [Dimension.SetHeightAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/setheightasync-method/llms-full.txt): Dimension.SetHeightAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.
- [Dimension.SetHiddenAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/sethiddenasync-method/llms-full.txt): Dimension.SetHiddenAsync method in the TX Sheet Control .NET API: Hides or reveals this dimension, retaining its stored size. Undoable.
- [Dimension.SetWidthAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/setwidthasync-method/llms-full.txt): Dimension.SetWidthAsync method in the TX Sheet Control .NET API: Performs an operation on this document without activating another worksheet.

---

## Nearby

- **Previous:** [DashboardWidgetAppearance.Shadow Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dashboardwidgetappearance/shadow-property/llms-full.txt)
- **Next:** [Dimension.GetHiddenAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/dimension/gethiddenasync-method/llms-full.txt)
