TX Text Control .NET for Windows Forms

ShapeSelected Event

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

Occurs when a shape has been selected. It occurs by using the select all method or changing the TXDrawingCore.Selection.Shapes property . The event handler receives an argument of type ShapeEventArgs containing data related to this event.

Syntax

public event ShapeEventHandler ShapeSelected;

Examples

The following example records useful context when shape selected occurs.

tXDrawingCore.ShapeSelected += (sender, e) =>
{
    Console.WriteLine($"Shape Selected at {DateTime.Now:u}");
};