TXSheetControlAreas 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 TXSheetControlAreas
Members
Constructors
| Constructor | Description |
|---|---|
| Constructor |
Properties
| Property | Description |
|---|---|
| FormulaBar | |
| Ribbon | |
| SheetTabs | |
| StatusBar |
Examples
Configure a localized invoice editor and pass these options to the Razor tag helper below. Razor creates and runs the tag helper; application code does not need to call Process manually. The helper includes its styles and scripts automatically.
using TXTextControl.TXSheetControl.AspNetCore;
TXSheetControlOptions CreateInvoiceEditorOptions()
{
var options = new TXSheetControlOptions { Theme = "auto", Language = "de", Locale = "de-DE", Rows = 100, Columns = 20, Areas = new TXSheetControlAreas { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = true } };
return options;
}
@using TXTextControl.TXSheetControl.AspNetCore
@addTagHelper *, TXTextControl.TXSheetControl.AspNetCore
@{
var options = new TXSheetControlOptions { Theme = "auto", Language = "de", Locale = "de-DE", Rows = 100, Columns = 20, Areas = new TXSheetControlAreas { Ribbon = true, FormulaBar = true, SheetTabs = true, StatusBar = true } };
}
<tx-sheet-control options="options" height="600"></tx-sheet-control>