TX Sheet Control

.NET API

Topic

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

NamespaceWhat it containsPackageStart with
TXTextControl.TXSheetControl.AspNetCoreThe Tag Helper that renders the browser editor in a Razor page with its stylesheet and scripts, its options and the static assets of the editorTXTextControl.TXSheetControl.AspNetCoreTXSheetControlTagHelper, TXSheetControlOptions
TXTextControl.TXSheetControl.DataServer-owned data sources and queries, an HTTP tabular-feed adapter and the binding of a workbook to themTXTextControl.TXSheetControl.ServerDataSourceRegistry, HttpDataSource
TXTextControl.TXSheetControl.ServerThe 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 savingTXTextControl.TXSheetControl.ServerServerSheetControl, Workbook, Worksheet

Conventions of the .NET API

  • Asynchronous methods. Methods whose names end in Async return 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 toStart in
Load, change, calculate, merge or save a workbook without a browserTXTextControl.TXSheetControl.Server, with ServerSheetControl
Show the browser editor in an ASP.NET Core Razor pageTXTextControl.TXSheetControl.AspNetCore, with TXSheetControlTagHelper
Supply data to a workbook from a query or an HTTP feed you controlTXTextControl.TXSheetControl.Data, with DataSourceRegistry

The pages of .NET in Getting Started and of Document Processing show these classes at work.

Pages in This Section