DrawingCreated 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 new drawing has been created. It occurs, when a drawing has been inserted in the document via the clipboard and when a file containing drawings has been loaded. It does not occur, when a drawing has been added with the DrawingCollection.Add method. The event handler receives an argument of type DrawingEventArgs containing data related to this event.
Syntax
public event DrawingEventHandler DrawingCreated;Public Event DrawingCreated As DrawingEventHandlerExamples
The following example records useful context when drawing created occurs.
textControl.DrawingCreated += (sender, e) =>
{
Console.WriteLine($"Drawing Created at {DateTime.Now:u}");
};AddHandler textControl.DrawingCreated,
Sub(sender, e)
Console.WriteLine($"Drawing Created at {DateTime.Now:u}")
End Sub