TX Sheet Control

TXSheetControlOptions.License Property

Property
Namespace
TXTextControl.TXSheetControl.AspNetCore
Package
TXTextControl.TXSheetControl.AspNetCore as TXTextControl.TXSheetControl.AspNetCore.dll from the private NuGet feed or the supplied NuGet folder

Required signed editor license for this major version, sent to the browser for verification.

Syntax

public string? License { get; set; }

Property Value

string?.

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>

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