# Shape.IsSelected Property

> Gets a value which indicates whether the shape is selected or not. The default value is false.

- **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 > Shape.IsSelected Property
- **319 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/isselected-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/isselected-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/isselected-property/llms-full.txt

---

### Description

Gets a value which indicates whether the [shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) is selected or not. The default value is false.

### Syntax

```csharp
public bool IsSelected { get; }
```

```vbnet
Public ReadOnly Property IsSelected As Boolean
```

### Examples

The following example checks the is selected state before recording the object's current status.

```csharp
if (shape.IsSelected)
{
    Console.WriteLine("Shape is ready for this operation.");
}
```

```vbnet
If shape.IsSelected Then
    Console.WriteLine("Shape is ready for this operation.")
End If
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Shape.Index Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/index-property/llms-full.txt)
- **Next:** [Shape.Location Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/location-property/llms-full.txt)
