DrawingActivated 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 activated. The event handler receives an argument of type DrawingEventArgs containing data related to this event. A drawing is activated, when the user clicks the drawing with the mouse. The user can alter the drawing's contents, when it is activated. When the user clicks on the drawing's border, it is selected. A selected drawing can be sized, moved or copied to the clipboard.
Syntax
public event DrawingEventHandler DrawingActivated;Public Event DrawingActivated As DrawingEventHandlerExamples
The following example records useful context when drawing activated occurs.
textControl.DrawingActivated += (sender, e) =>
{
Console.WriteLine($"Drawing Activated at {DateTime.Now:u}");
};AddHandler textControl.DrawingActivated,
Sub(sender, e)
Console.WriteLine($"Drawing Activated at {DateTime.Now:u}")
End Sub