BlazorSheetControl.Workbook Property
- Namespace
TXTextControl.TXSheetControl. Blazor
- Package
TXTextControl.asTXSheetControl. Blazor TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Blazor. dll
Shared typed document API. Handles become stale after loading a replacement workbook.
Syntax
public Workbook Workbook { get; }
Property Value
Workbook. Shared typed document API. Handles become stale after loading a replacement workbook.
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
Await asynchronous operations. Replacement workbook loads invalidate earlier worksheet, cell and range handles. Browser callbacks report completed notifications.