TX Text Control .NET Server

ShapeSelected Event

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

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}");
};