TX Text Control .NET for Windows Forms

CanBringToFront Property

Property|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public bool CanBringToFront { get; }

Examples

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

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

Limitations

Read only.