Search
DiagramLink.AutoSnapToNode Property
See Also
 






Gets or sets a value indicating whether link end points should automatically align to the border of the nearest node while the user moves them.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool AutoSnapToNode { get; set; }

Visual Basic  Copy Code

Public Property AutoSnapToNode As Boolean

 Property Value

true to snap links to nearest node; otherwise, false. Initialized with the value of AutoSnapLinks.

 Remarks

Only nodes at a distance smaller than AutoSnapDistance are considered. A link does not snap to its current origin or destination nodes if that would create a self-loop. If there is an AnchorPattern assigned to a node, the link snaps to an anchor point instead of a border point.

 See Also