TX Sheet Control

TXSheetControlOptions Class

Class
Namespace
TXTextControl.TXSheetControl.AspNetCore
Package
TXTextControl.TXSheetControl.AspNetCore from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.AspNetCore.dll
Install
dotnet add package TXTextControl.TXSheetControl.AspNetCore .NET 10 and later.

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

Syntax

public class TXSheetControlOptions

Members

Constructors

ConstructorDescription
Constructor

Properties

PropertyDescription
Areas
AutoExpand
Columns
DashboardModeMount-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
FontCatalogURLPublic runtime font catalog URL. Discovery completes before the integration ready event.
Height
Language
LicenseRequired signed editor license for this major version, sent to the browser for verification.
Locale
MaxColumns
MaxRows
Resources
Rows
Theme
UserNameCurrent 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>

See Also