# TextControl.SelectObjects Property

> Gets or sets a value controlling the selection of objects which are inserted behind the text. When the property is set to true, a mouse click selects the object behind the text. Otherwise, when this property is set to false, text in front of the object can be selected.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.SelectObjects Property
- **396 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/selectobjects-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/selectobjects-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/selectobjects-property/llms-full.txt

---

### Description

Gets or sets a value controlling the selection of objects which are inserted behind the text. When the property is set to true, a mouse click selects the object behind the text. Otherwise, when this property is set to false, text in front of the object can be selected.

### Syntax

```csharp
public bool SelectObjects { get; set; }
```

```vbnet
Public Property SelectObjects As Boolean
```

### Examples

The following example uses `TextControl.SelectObjects` to configure select objects as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.SelectObjects = true;
if (textControl.SelectObjects)
{
    Console.WriteLine("Text Control: Select Objects is enabled.");
}
```

```vbnet
textControl.SelectObjects = True
If textControl.SelectObjects Then
    Console.WriteLine("Text Control: Select Objects is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextControl.SelectionViewMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/selectionviewmode-property/llms-full.txt)
- **Next:** [TextControl.SelectWord Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/selectword-method/llms-full.txt)
