# SelectionChangedEventArgs.Active Property

> SelectionChangedEventArgs.Active property in the TX Sheet Control .NET API: A1 address of the active cell in a detached Blazor selection snapshot.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **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.Active Property
- **402 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/active-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/active-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/active-property/llms-full.txt

---

A1 address of the active cell.

### Syntax

```csharp
public string Active { get; init; }
```

### Property Value

`string`. A1 address of the active cell.

### 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 Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/constructor/llms-full.txt)
- **Next:** [SelectionChangedEventArgs.Anchor Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/anchor-property/llms-full.txt)
