Raised when a node is deleted, either programmatically or by the user.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
SyntaxC#
Copy Code
|
|---|
public event EventHandler<NodeEventArgs> NodeDeleted |
Visual Basic
Copy Code
|
|---|
Public Event NodeDeleted As EventHandler(Of NodeEventArgs) |
Event DataNodeDeleted 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. |
RemarksWhen 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.
See Also