A validation event raised while the user is moving or resizing a node.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<NodeValidationEventArgs> NodeModifying |
Visual Basic Copy Code |
---|
Public Event NodeModifying As EventHandler(Of NodeValidationEventArgs) |
NodeModifying 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 modified. | |
A PointF specifying the mouse cursor position. | |
The adjustment handle that is being moved. | |
Set this property to true to prevent the user from ending the modification 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 modification. |
This event is raised after each mouse movement while modifying a 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 modification and return the node to its original location.
NetDiagram Programmer's Guide | © 2023 MindFusion |