# Selection.Shapes Property

> Gets or set the selected shapes .

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl.Drawing > Selection.Shapes Property
- **462 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/shapes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/shapes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt

---

### Description

Gets or set the [selected](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/llms-full.txt) [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) .

### Syntax

```csharp
public Shape[] Shapes { get; set; }
```

```vbnet
Public Property Shapes As Shape()
```

### Examples

The following example uses `Selection.Shapes` to configure shapes as part of the selection workflow. The configured value is checked before the workflow continues.

```csharp
selection.Shapes = new TXTextControl.Drawing.Shape[] { new TXTextControl.Drawing.Shape() };
if (selection.Shapes != null)
{
    Console.WriteLine("Selection: Shapes is available.");
}
```

```vbnet
selection.Shapes = New TXTextControl.Drawing.Shape() { New TXTextControl.Drawing.Shape() }
If selection.Shapes IsNot Nothing Then
    Console.WriteLine("Selection: Shapes is available.")
End If
```

---

## Nearby

- **Previous:** [Selection.SendToBack Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/sendtoback-method/llms-full.txt)
- **Next:** [Shape Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt)
