TX Text Control .NET for Windows Forms

Selection Property

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

Description

Gets an object of type Drawing.Selection that represents the current selected shapes inside the canvas.

Syntax

public Selection Selection { get; }

Examples

The following example includes the selection value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Selection: {tXDrawingCore.Selection}");
Console.WriteLine("TXDrawing Core is ready for use.");

Limitations

Read only.