# TXSheetControlOptions.Height Property

> TXSheetControlOptions.Height property in the TX Sheet Control .NET API, with its syntax, its type "fill" and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Namespace:** `TXTextControl.TXSheetControl.AspNetCore`
- **Package:** `TXTextControl.TXSheetControl.AspNetCore` (assembly `TXTextControl.TXSheetControl.AspNetCore.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.AspNetCore > TXSheetControlOptions > TXSheetControlOptions.Height Property
- **887 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/height-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/height-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/height-property/llms-full.txt

---

### Syntax

```csharp
public string Height { get; }
```

### Property Value

Read-only `"fill"`: the browser control fills its parent host. Set `TXSheetControlTagHelper.Height` (the Razor `height` attribute) to choose the host height in CSS pixels. This option does not accept a numeric pixel height.

### Examples

Configure an invoice editor and pass its options to the Razor tag helper. The server reads the license from application configuration; no token is embedded in source. The tag helper sets a 640 CSS-pixel host, and the browser fills it.

```csharp
using TXTextControl.TXSheetControl.AspNetCore;

TXSheetControlOptions CreateInvoiceEditorOptions()
{
    return new TXSheetControlOptions {
        License = Environment.GetEnvironmentVariable("TX_SHEET_LICENSE"),
        UserName = "Invoice reviewer", Theme = "auto", Language = "de", Locale = "de-DE",
        Rows = 100, Columns = 20, AutoExpand = true, MaxRows = 10000, MaxColumns = 100,
        DashboardMode = "editor", ViewMode = "normal",
        FontCatalogURL = "~/_content/TXTextControl.TXSheetControl.AspNetCore/fonts/catalog.json",
        FontBaseURL = "~/_content/TXTextControl.TXSheetControl.AspNetCore/",
        Resources = new Dictionary<string, string> { ["ribbon.home"] = "Start" },
        Areas = new TXSheetControlAreas { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = true }
    };
}
```

```cshtml
@using TXTextControl.TXSheetControl.AspNetCore
@addTagHelper *, TXTextControl.TXSheetControl.AspNetCore
@{
    var options = new TXSheetControlOptions { Theme = "light", Language = "de", Locale = "de-DE" };
}
<tx-sheet-control options="options" height="640"></tx-sheet-control>
```

### Remarks

Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.

### See Also

- [TXSheetControlOptions Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [TXSheetControlOptions.FontCatalogURL Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/fontcatalogurl-property/llms-full.txt)
- **Next:** [TXSheetControlOptions.Language Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/language-property/llms-full.txt)
