# SelectionChangedEventArgs Constructor

> SelectionChangedEventArgs constructor in the .NET API: Creates a detached selection description with worksheet identity and zero-based row and column bounds.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Constructor
- **Namespace:** `TXTextControl.TXSheetControl.Blazor`
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Blazor.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Blazor > SelectionChangedEventArgs > SelectionChangedEventArgs Constructor
- **401 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/constructor/llms-full.txt

---

Creates a detached selection description with worksheet identity and zero-based row and column bounds.

### Syntax

```csharp
public SelectionChangedEventArgs()
```

### Examples

```csharp
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

- [SelectionChangedEventArgs](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/llms-full.txt).

---

## Nearby

- **Previous:** [SelectionChangedEventArgs Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/llms-full.txt)
- **Next:** [SelectionChangedEventArgs.Active Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/active-property/llms-full.txt)
