# TXSheetControlOptions Class

> TXSheetControlOptions class in the TX Sheet Control .NET API: ASP.NET integration contract that mounts and configures the shared browser control.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **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 Class
- **1549 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/llms-full.txt

---

ASP.NET integration contract that mounts and configures the shared browser control.

### Syntax

```csharp
public class TXSheetControlOptions
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Areas](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/areas-property/llms-full.txt) |  |
| [AutoExpand](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/autoexpand-property/llms-full.txt) |  |
| [Columns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/columns-property/llms-full.txt) |  |
| [DashboardMode](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/dashboardmode-property/llms-full.txt) | Mount-only UI policy: editor (default) or viewer. Viewer permits dashboard filters and drill-down without worksheet navigation or authoring; document mode cannot unlock it. |
| [FontBaseURL](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/fontbaseurl-property/llms-full.txt) |  |
| [FontCatalogURL](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/fontcatalogurl-property/llms-full.txt) | Public runtime font catalog URL. Discovery completes before the integration ready event. |
| [Height](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/height-property/llms-full.txt) |  |
| [Language](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/language-property/llms-full.txt) |  |
| [License](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/license-property/llms-full.txt) | Required signed editor license for this major version, sent to the browser for verification. |
| [Locale](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/locale-property/llms-full.txt) |  |
| [MaxColumns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/maxcolumns-property/llms-full.txt) |  |
| [MaxRows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/maxrows-property/llms-full.txt) |  |
| [Resources](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/resources-property/llms-full.txt) |  |
| [Rows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/rows-property/llms-full.txt) |  |
| [Theme](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/theme-property/llms-full.txt) |  |
| [UserName](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/username-property/llms-full.txt) | Current comment author, passed as the same simple userName string as the JavaScript API. |
| [ViewMode](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/viewmode-property/llms-full.txt) |  |

\| [Ribbon](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/ribbon-property/llms-full.txt) \| Browser ribbon layout, display mode and built-in command policies. \|

### 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>
```

### See Also

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

---

## In This Section

- [TXSheetControlOptions.Areas Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/areas-property/llms-full.txt): TXSheetControlOptions.Areas property in the TX Sheet Control .NET API, with its type TXSheetControlAreas and a C# example.
- [TXSheetControlOptions.AutoExpand Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/autoexpand-property/llms-full.txt): TXSheetControlOptions.AutoExpand property in the TX Sheet Control .NET API, with its syntax, its type bool? and a C# example.
- [TXSheetControlOptions.Columns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/columns-property/llms-full.txt): TXSheetControlOptions.Columns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [TXSheetControlOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/constructor/llms-full.txt): TXSheetControlOptions constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [TXSheetControlOptions.DashboardMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/dashboardmode-property/llms-full.txt): TXSheetControlOptions.DashboardMode property in the TX Sheet Control .NET API: Mount-only UI policy: editor (default) or viewer.
- [TXSheetControlOptions.FontBaseURL Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/fontbaseurl-property/llms-full.txt): TXSheetControlOptions.FontBaseURL property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [TXSheetControlOptions.FontCatalogURL Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/fontcatalogurl-property/llms-full.txt): TXSheetControlOptions.FontCatalogURL property in the TX Sheet Control .NET API: Public runtime font catalog URL. Covers its type string and a C# example.
- [TXSheetControlOptions.Height Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/height-property/llms-full.txt): TXSheetControlOptions.Height property in the TX Sheet Control .NET API, with its syntax, its type "fill" and a C# example.
- [TXSheetControlOptions.Language Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/language-property/llms-full.txt): TXSheetControlOptions.Language property in the TX Sheet Control .NET API, with its syntax, its type string and a C# example.
- [TXSheetControlOptions.License Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/license-property/llms-full.txt): TXSheetControlOptions.License property in the TX Sheet Control .NET API: Signed editor license for this major version, sent to the browser.
- [TXSheetControlOptions.Locale Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/locale-property/llms-full.txt): TXSheetControlOptions.Locale property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [TXSheetControlOptions.MaxColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/maxcolumns-property/llms-full.txt): TXSheetControlOptions.MaxColumns property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [TXSheetControlOptions.MaxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/maxrows-property/llms-full.txt): TXSheetControlOptions.MaxRows property in the TX Sheet Control .NET API, with its syntax, its type int? and a C# example.
- [TXSheetControlOptions.Resources Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/resources-property/llms-full.txt): TXSheetControlOptions.Resources property in the TX Sheet Control .NET API, with its type Dictionary<string, string>? and a C# example.
- [TXSheetControlOptions.Ribbon Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/ribbon-property/llms-full.txt): TXSheetControlOptions.Ribbon property in the TX Sheet Control .NET API, with its syntax, its type object? and a C# example.
- [TXSheetControlOptions.Rows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/rows-property/llms-full.txt): 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.
- [TXSheetControlOptions.Theme Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/theme-property/llms-full.txt): TXSheetControlOptions.Theme property in the TX Sheet Control .NET API, with its syntax, its type string and a C# example.
- [TXSheetControlOptions.UserName Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/username-property/llms-full.txt): TXSheetControlOptions.UserName property in the .NET API: Current comment author, passed as the same simple userName string as the JavaScript API.
- [TXSheetControlOptions.ViewMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/viewmode-property/llms-full.txt): TXSheetControlOptions.ViewMode property in the TX Sheet Control .NET API, with its syntax, its type string and a C# example.

---

## Nearby

- **Previous:** [TXSheetControlFontEndpoints.MapTXSheetControlFonts Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolfontendpoints/maptxsheetcontrolfonts-method/llms-full.txt)
- **Next:** [TXSheetControlOptions Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontroloptions/constructor/llms-full.txt)
