TX Sheet Control

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

A1 address of the active cell.

Syntax

public string Active { get; init; }

Property Value

string. A1 address of the active cell.

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