TX Text Control .NET for Windows Forms

DrawingActivated Event

Event|Introduced in 23.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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;

Examples

The following example records useful context when drawing activated occurs.

textControl.DrawingActivated += (sender, e) =>
{
    Console.WriteLine($"Drawing Activated at {DateTime.Now:u}");
};