ShapeSelected Event
- Namespace
TXTextControl.WPF. Drawing
- Package
TXTextControl.asTextControl. WPF. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Occurs when a shape has been selected. It occurs by using the select all method, changing the TXDrawingControl.Selection.Shapes property or selecting shapes manually by the built-in mouse interface . The event handler receives an argument of type ShapeEventArgs containing data related to this event.
Syntax
public event ShapeEventHandler ShapeSelected;Public Event ShapeSelected As ShapeEventHandlerExamples
The following example records useful context when shape selected occurs.
tXDrawingControl.ShapeSelected += (sender, e) =>
{
Console.WriteLine($"Shape Selected at {DateTime.Now:u}");
};AddHandler tXDrawingControl.ShapeSelected,
Sub(sender, e)
Console.WriteLine($"Shape Selected at {DateTime.Now:u}")
End Sub