DrawingSelected Event
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Occurs when a drawing has been selected. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
Syntax
public event DrawingEventHandler DrawingSelected;Public Event DrawingSelected As DrawingEventHandlerExamples
The following example records useful context when drawing selected occurs.
textControl.DrawingSelected += (sender, e) =>
{
Console.WriteLine($"Drawing Selected at {DateTime.Now:u}");
};AddHandler textControl.DrawingSelected,
Sub(sender, e)
Console.WriteLine($"Drawing Selected at {DateTime.Now:u}")
End Sub