ShapeCreated Event
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. Core. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
Description
Occurs when a new shape has been created. It occurs, when a shape has been inserted in the TXDrawingCore'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.
tXDrawingCore.ShapeCreated += (sender, e) =>
{
Console.WriteLine($"Shape Created at {DateTime.Now:u}");
};AddHandler tXDrawingCore.ShapeCreated,
Sub(sender, e)
Console.WriteLine($"Shape Created at {DateTime.Now:u}")
End Sub