Search
DiagramBase.NodeDeleting Event
See Also
 





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

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public event EventHandler<NodeValidationEventArgs> NodeDeleting

Visual Basic  Copy Code

Public Event NodeDeleting As EventHandler(Of NodeValidationEventArgs)

 Event Data

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

Member name

Description

Node

A DiagramNode 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 node.

 Remarks

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.

 See Also