# TXDrawingCore.Selection Property

> Gets an object of type Drawing.Selection that represents the current selected shapes inside the canvas.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Drawing > TXDrawingCore.Selection Property
- **311 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/selection-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/selection-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/selection-property/llms-full.txt

---

### Description

Gets an object of type [Drawing.Selection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/llms-full.txt) that represents the current selected shapes inside the canvas.

### Syntax

```csharp
public Selection Selection { get; }
```

```vbnet
Public ReadOnly Property Selection As Selection
```

### Examples

The following example includes the selection value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Selection: {tXDrawingCore.Selection}");
Console.WriteLine("TXDrawing Core is ready for use.");
```

```vbnet
Console.WriteLine($"Selection: {tXDrawingCore.Selection}")
Console.WriteLine("TXDrawing Core is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TXDrawingCore.SelectAll Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/selectall-method/llms-full.txt)
- **Next:** [TXDrawingCore.ShapeCreated Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/shapecreated-event/llms-full.txt)
