TXSheetControlOptions Class
- Namespace
TXTextControl.TXSheetControl. AspNetCore
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. AspNetCore
- Assembly
TXTextControl.TXSheetControl. AspNetCore. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. AspNetCore
ASP.NET integration contract that mounts and configures the shared browser control.
Syntax
public class TXSheetControlOptions
Members
Constructors
| Constructor | Description |
|---|---|
| Constructor |
Properties
| Property | Description |
|---|---|
| Areas | |
| AutoExpand | |
| Columns | |
| DashboardMode | 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 | |
| FontCatalogURL | Public runtime font catalog URL. Discovery completes before the integration ready event. |
| Height | |
| Language | |
| License | Required signed editor license for this major version, sent to the browser for verification. |
| Locale | |
| MaxColumns | |
| MaxRows | |
| Resources | |
| Rows | |
| Theme | |
| UserName | Current comment author, passed as the same simple userName string as the JavaScript API. |
| ViewMode |
| Ribbon | 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.
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 }
};
}
@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>