Search
DiagramLink.AutoRoute Property
See Also
 





Gets or sets a value indicating whether a link must avoid nodes by going the shortest path from its origin to its destination without crossing any other nodes.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public bool AutoRoute { get; set; }

Visual Basic  Copy Code

Public Property AutoRoute As Boolean

 Property Value

true to route this link, or false otherwise. Initialized with the value of RouteLinks.

 Remarks

If AutoRoute is enabled, a link automatically finds the shortest possible path between its origin and destination that doesn't intersect Obstacle nodes. The number and orientation of the link's segments are updated when the nodes it links are moved around. The positions of end points of a routed link are not changed, unless the link is also set to Dynamic.

Links are routed using current LinkRouter. The default is a CompositeRouter instance that chains PatternRouter and GridRouter. The former applies a few standard link paths, and the latter runs cost-minimization algorithm when more complex paths are necessary.

It is best to use AutoRoute with links of the Cascading style. Note that automatic routing overrides the RetainForm behavior.

 See Also