# TXDrawingCore.Shapes Property

> Gets an object of type ShapeCollection that represents those shapes which are displayed inside the canvas.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.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 > TXDrawingCore.Shapes Property
- **366 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapes-property/llms-full.txt

---

### Description

Gets an object of type [ShapeCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/llms-full.txt) that represents those [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) which are displayed inside the canvas.

### Syntax

```csharp
public ShapeCollection Shapes { get; }
```

```vbnet
Public ReadOnly Property Shapes As ShapeCollection
```

### Examples

The following example iterates through the shapes collection and processes each shape.

```csharp
foreach (TXTextControl.Drawing.Shape shape in tXDrawingCore.Shapes)
{
    Console.WriteLine(shape.Angle);
}
```

```vbnet
For Each shape As TXTextControl.Drawing.Shape In tXDrawingCore.Shapes
    Console.WriteLine(shape.Angle)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TXDrawingCore.ShapeMoved Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapemoved-event/llms-full.txt)
- **Next:** [TXDrawingCore.ShapeSelected Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcore/shapeselected-event/llms-full.txt)
