# TXSheetControlOptions.Rows Property

> TXSheetControlOptions.Rows property in the TX Sheet Control .NET API, with its syntax, its type int?, a C# example and remarks on awaiting tasks and handles.

- **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.Rows Property
- **850 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/rows-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/rows-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/rows-property/llms-full.txt

---

### Syntax

```csharp
public int? Rows { get; set; }
```

### Property Value

`int?`.

### 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.Resources Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/resources-property/llms-full.txt)
- **Next:** [TXSheetControlOptions.Theme Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/theme-property/llms-full.txt)
