TX Sheet Control

ISheetControl Interface

Interface
Namespace
TXTextControl.TXSheetControl.Server
Package
TXTextControl.TXSheetControl.Server from the private NuGet feed or the supplied NuGet folder
Assembly
TXTextControl.TXSheetControl.Api.dll
Install
dotnet add package TXTextControl.TXSheetControl.Server .NET 10 and later.
Also in
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Api.dll
Implements
IAsyncDisposable
Implemented by
BlazorSheetControl, ServerSheetControl

Portable asynchronous document API implemented by browser and native server hosts. Dispose the owner after its dependent documents.

Syntax

public interface ISheetControl

Members

MemberDescription
EventsDocument notifications. Browser hosts deliver completed notifications asynchronously.
LoadAsyncLoads copied bytes atomically. PDF is save-only. Cancellation before commit retains the original document.
LoadTextAsyncLoads UTF-8 CSV, XML or JSON text. Other formats require bytes.
MergeAsyncMerges application data into this document and returns detached merge metadata.
SaveAsyncExports an isolated snapshot to caller-owned bytes.
SaveTextAsyncExports CSV, XML or JSON as UTF-8 text.
WorkbookTyped document operations and handles owned by this instance.

Examples

The control variable is the host received by Ready. File examples use caller-provided xlsxBytes.

var sheet = await control.Workbook.Sheets.AtAsync(0);
await sheet.Cell("A1").SetValueAsync("Orders");
await sheet.Cell("B2").SetValueAsync(8);
await sheet.Cell("D2").SetFormulaAsync("=B2*12");

Remarks

The native and browser hosts implement this portable interface. Browser hosts reject filesystem paths. Dispose dependent documents before their owner.

See Also