Search
DiagramBase.LinkDeleting Event
See Also
 





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

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

 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