SelectionChangedEventArgs.SheetId Property
- Namespace
TXTextControl.TXSheetControl. Blazor
- Package
TXTextControl.asTXSheetControl. Blazor TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. Blazor. dll
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.