# SelectionChangedEventArgs.SheetId Property

> SelectionChangedEventArgs.SheetId property in the TX Sheet Control .NET API: Identity of the worksheet on which the selection's A1 addresses apply.

- **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.SheetId Property
- **398 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/sheetid-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/sheetid-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/sheetid-property/llms-full.txt

---

Worksheet identity.

### Syntax

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

### Property Value

`string`. Worksheet identity.

### 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.LastRow Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/selectionchangedeventargs/lastrow-property/llms-full.txt)
- **Next:** [SheetControlErrorEventArgs Class](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-blazor/sheetcontrolerroreventargs/llms-full.txt)
