ShapeClicked 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 clicked on. The event handler receives an argument of type ShapeEventArgs containing data related to this event.
Syntax
public event ShapeEventHandler ShapeClicked;Public Event ShapeClicked As ShapeEventHandlerExamples
The following example records useful context when shape clicked occurs.
tXDrawingControl.ShapeClicked += (sender, e) =>
{
Console.WriteLine($"Shape Clicked at {DateTime.Now:u}");
};AddHandler tXDrawingControl.ShapeClicked,
Sub(sender, e)
Console.WriteLine($"Shape Clicked at {DateTime.Now:u}")
End Sub