TX Sheet Control

SelectionChangedEventArgs.SheetId 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

Worksheet identity.

Syntax

public string SheetId { get; init; }

Property Value

string. Worksheet identity.

Examples

private string selectionLabel = "";
private void OnSelection(SelectionChangedEventArgs args)
{
    selectionLabel = $"{args.Kind}: {args.Active}, {args.Anchor} to {args.Focus} on {args.SheetId}";
    int rows = args.LastRow - args.FirstRow + 1;
    int columns = args.LastColumn - args.FirstColumn + 1;
    selectionLabel += $" ({rows} rows, {columns} columns)";
}

Remarks

Callback data is a detached snapshot. Update application UI in the callback and obtain a current workbook handle before editing cells.

See Also