ControlAreas Class
- Namespace
TXTextControl.TXSheetControl. Blazor
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Blazor
- Assembly
TXTextControl.TXSheetControl. Blazor. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. Blazor
- Implements
- IEquatable<Control
Areas>
Visibility of browser editor chrome, independent of workbook contents and exports.
Syntax
public class ControlAreas
Members
| Member | Description |
|---|---|
| Constructor | Creates ControlAreas settings or event data for the component. |
| FormulaBar | Shows the formula bar. |
| Ribbon | Shows the ribbon. |
| SheetTabs | Shows worksheet tabs. |
| StatusBar | Shows the status bar. |
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.