Raised when the user tries to delete a link, this event lets you cancel the operation.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<LinkValidationEventArgs> LinkDeleting |
Visual Basic Copy Code |
---|
Public Event LinkDeleting As EventHandler(Of LinkValidationEventArgs) |
LinkDeleting event handlers receive an argument of type LinkValidationEventArgs. The following LinkValidationEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
A DiagramLink that the user is trying to delete by pressing the DEL key. | |
Set this property to true to prevent the user from deleting the link. |
When users delete a node, its connecting links are deleted too. However, in that case LinkDeleting validation events are not raised, but just NodeDeleting.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |