# Selection.CanBringToFront Property

> 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.

- **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 > Selection.CanBringToFront Property
- **406 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/canbringtofront-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/canbringtofront-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/canbringtofront-property/llms-full.txt

---

### Description

Gets value that indicates whether the [selected shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/shapes-property/llms-full.txt) can be [displayed as the uppermost](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/bringtofront-method/llms-full.txt) [shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) of all [shapes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/shapes-property/llms-full.txt). The property returns false if no or more than one [shape](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/shape/llms-full.txt) are selected or one of the selected shape is already the uppermost shape. In all other cases the property returns true.

### Syntax

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

```vbnet
Public ReadOnly Property CanBringToFront As Boolean
```

### Examples

The following example checks can bring to front before performing the related operation.

```csharp
if (selection.CanBringToFront)
{
    selection.BringToFront();
}
```

```vbnet
If selection.CanBringToFront Then
    selection.BringToFront()
End If
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Selection.CanBringForward Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/canbringforward-property/llms-full.txt)
- **Next:** [Selection.CanSendBackward Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/cansendbackward-property/llms-full.txt)
