.NET API
The public .NET types of TX Sheet Control come from three NuGet packages: TXTextControl.TXSheetControl.AspNetCore, which adds the browser editor to ASP.NET Core Razor pages, and TXTextControl.TXSheetControl.Server, which processes workbooks in .NET without a browser. The Blazor package TXTextControl.TXSheetControl.Blazor adds a Razor component, typed C# workbook APIs and notifications for Server and WebAssembly. The additional non-SQL data namespace is bundled with the Server package, so there is no separate helper package to install.
The table below says what each namespace contains and where to start in it. A namespace's page lists its classes, interfaces and enumerations, and a class's page lists its members.
Namespaces
| Namespace | What it contains | Package | Start with |
|---|---|---|---|
| TXTextControl.TXSheetControl.AspNetCore | The Tag Helper that renders the browser editor in a Razor page with its stylesheet and scripts, its options and the static assets of the editor | TXTextControl.TXSheetControl.AspNetCore | TXSheetControlTagHelper, TXSheetControlOptions |
| TXTextControl.TXSheetControl.Data | Server-owned data sources and queries, an HTTP tabular-feed adapter and the binding of a workbook to them | TXTextControl.TXSheetControl.Server | DataSourceRegistry, HttpDataSource |
| TXTextControl.TXSheetControl.Server | The processing entry point and the document model it owns: workbooks, worksheets, cells, ranges, tables, charts, dashboards, mail merge, fonts and the options for loading and saving | TXTextControl.TXSheetControl.Server | ServerSheetControl, Workbook, Worksheet |
Conventions of the .NET API
- Asynchronous methods. Methods whose names end in
Asyncreturn tasks. Await them before you use their results or dispose their owner. - Indices. Collection indices are zero-based.
- Signatures. Nullable annotations and optional arguments with their default values appear in the signatures.
How the names of the document API are chosen, and why the spreadsheet Range is not System.Range, is explained in .NET API Names.
Find the Right Namespace
| If you want to | Start in |
|---|---|
| Load, change, calculate, merge or save a workbook without a browser | TXTextControl.TXSheetControl.Server, with ServerSheetControl |
| Show the browser editor in an ASP.NET Core Razor page | TXTextControl.TXSheetControl.AspNetCore, with TXSheetControlTagHelper |
| Supply data to a workbook from a query or an HTTP feed you control | TXTextControl.TXSheetControl.Data, with DataSourceRegistry |
The pages of .NET in Getting Started and of Document Processing show these classes at work.
Pages in This Section
TXTextControl.TXSheetControl.AspNetCore: the Razor Tag Helper, its options and the editor's static assets.
TXTextControl.TXSheetControl.Data: data sources, queries and workbook data binding.
TXTextControl.TXSheetControl.Server:
ServerSheetControland the document model.TXTextControl.TXSheetControl.Blazor: the editor component, browser host, options and callback data.