Raised when a node is deleted, either programmatically or by the user.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<NodeEventArgs> NodeDeleted |
Visual Basic Copy Code |
---|
Public Event NodeDeleted As EventHandler(Of NodeEventArgs) |
NodeDeleted event handlers receive an argument of type NodeEventArgs. The following NodeEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The DiagramNode that has been deleted. |
When the event is raised, the node is already removed from the Items and Nodes collections and all links connected to the node are deleted. From within an event handler you can still check the values of simple properties of the node such as Text or Tag.
To prevent users from deleting a node by pressing the DEL key, handle the NodeCreating event.