# Shape.Index Property

> Represents the index of the shape inside control's shape collection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl.Drawing > Shape.Index Property
- **378 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/index-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/index-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/index-property/llms-full.txt

---

### Description

Represents the index of the [shape](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/llms-full.txt) inside [control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt)'s [shape collection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapes-property/llms-full.txt).

### Syntax

```csharp
public int Index { get; }
```

```vbnet
Public ReadOnly Property Index As Integer
```

### Examples

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

```csharp
Console.WriteLine($"Index: {shape.Index}");
Console.WriteLine("Shape is ready for use.");
```

```vbnet
Console.WriteLine($"Index: {shape.Index}")
Console.WriteLine("Shape is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Shape.Flip Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/flip-property/llms-full.txt)
- **Next:** [Shape.IsSelected Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-drawing/shape/isselected-property/llms-full.txt)
