Search
LinkDeleted Event

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

Syntax

JavaScript  Copy Code

function onLinkDeleted (sender, args)

Event Data

LinkDeleted handlers receive an event object of type LinkEventArgs.

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.

To handle the LinkDeleted event, assign the name of the respective JavaScript function (for example 'onLinkDeleted') to the LinkDeletedScript property.

See Also

DiagramView Members
DiagramView Class
MindFusion.Diagramming Namespace
LinkCreated Event