# Selection Class

> The Drawing.Selection class represents all selected shapes.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Implements:** `System.ComponentModel.INotifyPropertyChanged`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Drawing > Selection Class
- **1210 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/llms-full.txt

---

### Description

The Drawing.Selection class represents all [selected shapes](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt).

### Syntax

```csharp
public class Selection : INotifyPropertyChanged
```

```vbnet
Public Class Selection
    Implements INotifyPropertyChanged
```

### Examples

The following example creates a reusable selection format and applies it to the current report heading.

```csharp
textControl.Text = "Quarterly results";
textControl.Select(0, textControl.Text.Length);
Selection selection = new() { Bold = true, FontSize = 280 };
textControl.Selection = selection;
```

```vbnet
textControl.Text = "Quarterly results"
textControl.Select(0, textControl.Text.Length)
Dim selection As New Selection() With { .Bold = True, .FontSize = 280 }
textControl.Selection = selection
```

---

## In This Section

- [Selection.BringForward Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/bringforward-method/llms-full.txt): Increases the selected shapes' levels by one. The method has no effect if the CanBringForward property returns false.
- [Selection.BringToFront Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/bringtofront-method/llms-full.txt): Displays the selected shape as the uppermost shape of all shapes. The method has no effect if the CanBringToFront property returns false.
- [Selection.CanBringForward Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/canbringforward-property/llms-full.txt): Gets value that indicates whether the selected shapes' levels can be increased by one. The property returns false if no shape is selected or one of the selected shapes is already the uppermost shape. In all other cases the property returns true.
- [Selection.CanBringToFront Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/canbringtofront-property/llms-full.txt): Gets value that indicates whether the selected shape can be displayed as the uppermost shape of all shapes. The property returns false if no or more than one shape are selected or one of the selected shape is already the uppermost shape. In all other cases the property returns true.
- [Selection.CanSendBackward Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/cansendbackward-property/llms-full.txt): Gets value that indicates whether the selected shapes' levels can be decreased by one. The property returns false if no shape is selected or one of the selected shapes is already the lowest shape. In all other cases the property returns true.
- [Selection.CanSendToBack Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/cansendtoback-property/llms-full.txt): Gets value that indicates whether the selected shape can be displayed as the lowest shape of all shapes. The property returns false if no or more than one shape are selected or one of the selected shape is already the lowest shape. In all other cases the property returns true.
- [Selection.IsCommonValueSelected Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/iscommonvalueselected-method/llms-full.txt): Informs about whether an attribute from the Drawing.Selection.Attribute enumeration has the same value for the complete shapes selection.
- [Selection.SendBackward Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/sendbackward-method/llms-full.txt): Decreases the selected shapes' levels by one. The method has no effect if the CanSendBackward property returns false.
- [Selection.SendToBack Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/sendtoback-method/llms-full.txt): Displays the selected shape as the lowest shape of all shapes. The method has no effect if the CanSendToBack property returns false.
- [Selection.Shapes Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt): Gets or set the selected shapes .

---

## Nearby

- **Previous:** [Flip Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/flip/enumeration/llms-full.txt)
- **Next:** [Selection.Attribute Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/selection-attribute/enumeration/llms-full.txt)
