Raised when a link is deleted, either programmatically or by the user.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<LinkEventArgs> LinkDeleted |
Visual Basic Copy Code |
---|
Public Event LinkDeleted As EventHandler(Of LinkEventArgs) |
LinkDeleted event handlers receive an argument of type LinkEventArgs. The following LinkEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The DiagramLink that has been deleted. |
The link is removed from the Items and Links collections before the event is raised. From within an event handler you can still check the values of simple properties such as Text or Tag. Before deleting a node, all links that link to it are deleted too. So there might be several LinkDeleted events raised before NodeDeleted is raised.
To prevent users from deleting a link by pressing the DEL key, handle the LinkDeleting event.