Search
Events.validateAnchorPoint Property
See Also
 





A validation event that lets you approve or reject connecting a link to an anchor point.

Namespace: MindFusion.Diagramming
File: Events.js

 Syntax

JavaScript  Copy Code

get validateAnchorPoint() {}
set validateAnchorPoint(value) {}

 Property Value

String

A string containing the event name.

 Remarks

validateAnchorPoint event handlers receive an argument of type LinkValidationEventArgs.

This event is raised for each point of an AnchorPattern while a link's end point is being moved over a node. If none of the anchor points are validated, the mouse cursor icon changes to NotAllowed, indicating that the link cannot be connected to that node.

When the mouse button is released over a node, the event is raised again for the node's anchor points. From all validated anchor points, the one nearest to the dragged link end point is used to dock the link.

 See Also