# ShapeCollection.Item Property

> Gets an object of type Shape from the collection. This property is the indexer for the ShapeCollection class.

- **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 > ShapeCollection.Item Property
- **388 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/item-property/llms-full.txt

---

### Description

Gets an object of type [Shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) from the [collection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/llms-full.txt). This property is the indexer for the [ShapeCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/llms-full.txt) class.

### Syntax

```csharp
public Shape this[int number] { get; }
```

```vbnet
Default Public ReadOnly Property Item(number As Integer) As Shape
```

### Examples

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

```csharp
Console.WriteLine($"Item: {shapeCollection[10]}");
Console.WriteLine("Shape Collection is ready for use.");
```

```vbnet
Console.WriteLine($"Item: {shapeCollection.Item(10)}")
Console.WriteLine("Shape Collection is ready for use.")
```

---

## Nearby

- **Previous:** [ShapeCollection.Insert Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/insert-method/llms-full.txt)
- **Next:** [ShapeCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shapecollection/remove-method/llms-full.txt)
