ShapeDeleted 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 shape has been deleted from the TXDrawingCore's shapes collection. It occurs by cutting or using the shape collection's Remove, RemoveAt or Clear method. The event handler receives an argument of type ShapeEventArgs containing data related to this event.
Syntax
public event ShapeEventHandler ShapeDeleted;Public Event ShapeDeleted As ShapeEventHandlerExamples
The following example records useful context when shape deleted occurs.
tXDrawingCore.ShapeDeleted += (sender, e) =>
{
Console.WriteLine($"Shape Deleted at {DateTime.Now:u}");
};AddHandler tXDrawingCore.ShapeDeleted,
Sub(sender, e)
Console.WriteLine($"Shape Deleted at {DateTime.Now:u}")
End Sub