TX Sheet Control

BlazorSheetControl.Events Property

Property
Namespace
TXTextControl.TXSheetControl.Blazor
Package
TXTextControl.TXSheetControl.Blazor as TXTextControl.TXSheetControl.Blazor.dll from the private NuGet feed or the supplied NuGet folder

Shared completed workbook notifications. Browser events cannot synchronously cancel an edit.

Syntax

public WorkbookEvents Events { get; }

Property Value

WorkbookEvents. Shared completed workbook notifications. Browser events cannot synchronously cancel an edit.

Examples

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

control.Events.Changed += OnChanged;
var sheet = await control.Workbook.Sheets.AtAsync(0);
await sheet.Cell("A1").SetValueAsync("Orders");
await sheet.Cell("B2").SetValueAsync(8);
void OnChanged(object? sender, WorkbookEventArgs args)
{
    // Update application UI after the completed transaction.
}
// Remove the handler when the consuming component is disposed.
control.Events.Changed -= OnChanged;

Remarks

Await asynchronous operations. Replacement workbook loads invalidate earlier worksheet, cell and range handles. Browser callbacks report completed notifications.

See Also