A validation event raised while the user is drawing a new node.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<NodeValidationEventArgs> NodeCreating |
Visual Basic Copy Code |
---|
Public Event NodeCreating As EventHandler(Of NodeValidationEventArgs) |
NodeCreating event handlers receive an argument of type NodeValidationEventArgs. The following NodeValidationEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The DiagramNode that is being created. | |
A PointF specifying the mouse cursor position. | |
Set this property to true to prevent the user from creating the node at the current location. That displays the Stop mouse cursor and releasing the button will cancel the operation. | |
Call this method to immediately stop the node creation. |
NodeCreating is raised after each mouse movement while drawing a new node. Setting Cancel to true will change the mouse cursor to DisallowCursor (a Stop icon by default). The event is raised once again when the mouse button is released. Setting Cancel to true in that case will cancel the node creation.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |