ISheetControl Interface
- Namespace
TXTextControl.TXSheetControl. Server
- Package
TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Server
- Assembly
TXTextControl.TXSheetControl. Api. dll
- Install
dotnet add package TXTextControl..NET 10 and later.TXSheetControl. Server
- Also in
TXTextControl.asTXSheetControl. Blazor TXTextControl.TXSheetControl. Api. dll
- Implements
- IAsync
Disposable
- Implemented by
- Blazor
Sheet , ServerControl Sheet Control
Portable asynchronous document API implemented by browser and native server hosts. Dispose the owner after its dependent documents.
Syntax
public interface ISheetControl
Members
| Member | Description |
|---|---|
| Events | Document notifications. Browser hosts deliver completed notifications asynchronously. |
| LoadAsync | Loads copied bytes atomically. PDF is save-only. Cancellation before commit retains the original document. |
| LoadTextAsync | Loads UTF-8 CSV, XML or JSON text. Other formats require bytes. |
| MergeAsync | Merges application data into this document and returns detached merge metadata. |
| SaveAsync | Exports an isolated snapshot to caller-owned bytes. |
| SaveTextAsync | Exports CSV, XML or JSON as UTF-8 text. |
| Workbook | Typed 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.