TX Text Control .NET for Windows Forms

Shapes 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 or set the selected shapes .

Syntax

public Shape[] Shapes { get; set; }

Examples

The following example uses Selection.Shapes to configure shapes as part of the selection workflow. The configured value is checked before the workflow continues.

selection.Shapes = new TXTextControl.Drawing.Shape[] { new TXTextControl.Drawing.Shape() };
if (selection.Shapes != null)
{
    Console.WriteLine("Selection: Shapes is available.");
}