A validation event raised while the user is modifying a link.
public event EventHandler<LinkValidationEventArgs> LinkModifying
Public Event LinkModifying As EventHandler(Of LinkValidationEventArgs)
LinkModifying event handlers receive an argument of type LinkValidationEventArgs. The following LinkValidationEventArgs members provide information relevant to the event:
The DiagramLink that is being modified.
A PointF specifying the mouse cursor position.
Index of the adjustment handle that is being moved.
A value indicating whether the operation changes the origin of the link.
The DiagramNode that will be set as the link's Origin if this event is validated.
A value indicating whether the operation changes the destination of the link.
The DiagramNode that will be set as the link's Destination if this event is validated.
Index of the anchor point to which the link will be connected if this event is validated.
Index of the table row to which the link will be connected if this event is validated.
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 link modification.