MindFusion.Wpf Pack Programmer's Guide
DiagramBase.LinkDeleted Event
See Also
 





Raised when a link is deleted, either programmatically or by the user.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public event EventHandler<LinkEventArgs> LinkDeleted

Visual Basic  Copy Code

Public Event LinkDeleted As EventHandler(Of LinkEventArgs)

 Event Data

LinkDeleted event handlers receive an argument of type LinkEventArgs. The following LinkEventArgs members provide information relevant to the event:

Member name

Description

Link

The DiagramLink that has been deleted.

 Remarks

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 a 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.

 See Also

DiagramBase Members
DiagramBase Class
MindFusion.Diagramming.Wpf Namespace
LinkCreated Event