ShapeCreated 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 new shape has been created. It occurs, when a shape has been inserted in TX Drawing Control's shapes collection by pasting or using the shape collection's Add method. The event handler receives an argument of type ShapeEventArgs containing data related to this event.
Syntax
public event ShapeEventHandler ShapeCreated;Public Event ShapeCreated As ShapeEventHandlerExamples
The following example records useful context when shape created occurs.
tXDrawingControl.ShapeCreated += (sender, e) =>
{
Console.WriteLine($"Shape Created at {DateTime.Now:u}");
};AddHandler tXDrawingControl.ShapeCreated,
Sub(sender, e)
Console.WriteLine($"Shape Created at {DateTime.Now:u}")
End Sub