# SelectionChangedEventArgs.Focus Property

> SelectionChangedEventArgs.Focus property in the TX Sheet Control .NET API: A1 address where selection extension ends, as a string in a detached 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.Focus Property
- **406 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/focus-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/focus-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/focus-property/llms-full.txt

---

A1 address where selection extension ends.

### Syntax

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

### Property Value

`string`. A1 address where selection extension ends.

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