DiagramLite Programmer's Guide
DiagramBase.LinkDeleting Event
See Also
 





Raised when the user tries to delete a link, this event lets you cancel the operation.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public event EventHandler<LinkValidationEventArgs> LinkDeleting

Visual Basic  Copy Code

Public Event LinkDeleting As EventHandler(Of LinkValidationEventArgs)

 Event Data

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

Member name

Description

Link

A DiagramLink that the user is trying to delete by pressing the DEL key.

Cancel

Set this property to true to prevent the user from deleting the link.

 Remarks

When users delete a node, its connecting links are deleted too. However, in that case LinkDeleting validation events are not raised, but just NodeDeleting.

 See Also

DiagramBase Members
DiagramBase Class
MindFusion.Diagramming Namespace
DelKeyAction Property