TX Sheet Control

SheetControlOptions Class

Class
Namespace
TXTextControl.TXSheetControl.Blazor
Package
TXTextControl.TXSheetControl.Blazor from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.Blazor.dll
Install
dotnet add package TXTextControl.TXSheetControl.Blazor .NET 10 and later.
Implements
IEquatable<SheetControlOptions>

Mount settings for one browser editor. License, capacities and dashboard policy are fixed until the component is recreated.

Syntax

public class SheetControlOptions

Members

MemberDescription
ConstructorCreates SheetControlOptions settings or event data for the component.
AreasEditor chrome visibility, retained across workbook loads.
AutoExpandWhether the worksheet can grow when users edit or scroll.
ColumnsInitial worksheet column capacity.
DashboardModeEditor or viewer hosting policy, independent of saved document data.
FontBaseURLOptional URL prefix for relative font resources.
FontCatalogURLOptional runtime catalog URL, resolved relative to the application's base URI.
HighlightDependentsBrief screen-only feedback for formula dependents.
LanguageInterface language, independent of the cell formatting locale.
LicenseStore-issued license string, verified by the existing browser reader before Ready.
LocaleInitial number and date formatting locale.
MaxColumnsMaximum column capacity when automatic growth is enabled.
MaxRowsMaximum row capacity when automatic growth is enabled.
ResourcesPer-editor localized resource overrides.
RibbonScreen-only ribbon density, display mode and built-in item policies.
RowsInitial worksheet row capacity, independent of populated rows.
ThemeAutomatic, light or dark appearance: auto, light, dark.
UserNameComment author used for new comments.
ViewModeNormal or page-layout worksheet presentation.
ZoomWorksheet zoom in percent, from 25 to 400.

Examples

Configure the Options parameter before mounting the component. license is the unchanged store-issued license string.

var options = new SheetControlOptions
{
    License = license,
    Rows = 2000, Columns = 20, AutoExpand = true, MaxRows = 10000, MaxColumns = 100,
    DashboardMode = "editor", ViewMode = "normal", Theme = "dark", Language = "en",
    Locale = "en-US", UserName = "Alex", Zoom = 125, HighlightDependents = true,
    FontCatalogURL = "fonts/catalog.json", FontBaseURL = "fonts/",
    Areas = new() { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = false },
    Ribbon = new()
    {
        Layout = "compact", DisplayMode = "expanded",
        Tabs = new Dictionary<string, RibbonItemOptions> { ["review"] = new() { Visible = true } },
        Groups = new Dictionary<string, RibbonItemOptions> { ["home.font"] = new() { Enabled = true } },
        Buttons = new Dictionary<string, RibbonItemOptions> { ["home.font.bold"] = new() { Enabled = false } }
    },
    Resources = new Dictionary<string, string> { ["ribbon.home"] = "Home" }
};

Remarks

Use the component only after interactive rendering. Browser document operations execute in the editor through JavaScript interop. Completed notifications cannot synchronously cancel edits.

See Also