DiagramLite Programmer's Guide
DiagramBase.NodeDeleted Event
See Also
 





Raised when a node is deleted, either programmatically or by the user.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public event EventHandler<NodeEventArgs> NodeDeleted

Visual Basic  Copy Code

Public Event NodeDeleted As EventHandler(Of NodeEventArgs)

 Event Data

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

Member name

Description

Node

The DiagramNode that has been deleted.

 Remarks

When this 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

DiagramBase Members
DiagramBase Class
MindFusion.Diagramming Namespace
NodeDeleting Event
NodeCreated Event