Raised when the user tries to delete a node, this event lets you cancel the operation.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C# Copy Code |
---|
public event EventHandler<NodeValidationEventArgs> NodeDeleting |
Visual Basic Copy Code |
---|
Public Event NodeDeleting As EventHandler(Of NodeValidationEventArgs) |
NodeDeleting event handlers receive an argument of type NodeValidationEventArgs. The following NodeValidationEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
A DiagramNode that the user is trying to delete by pressing the DEL key. | |
Set this property to true to prevent the user from deleting the node. |
When the user deletes a node, the links connected to it are deleted too. However, the LinkDeleting validation event is not raised in that case.