TX Sheet Control

ISheetControl.Events Property

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

Document notifications. Browser hosts deliver completed notifications asynchronously.

Syntax

public WorkbookEvents Events { get; }

Property Value

WorkbookEvents. Document notifications. Browser hosts deliver completed notifications asynchronously.

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