MindFusion.Wpf Pack Programmer's Guide
Diagram.RouteLinks Property
See Also
 





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

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

 Syntax

C#  Copy Code

public bool RouteLinks { get; set; }

Visual Basic  Copy Code

Public Property RouteLinks As Boolean

 Property Value

true to route links; otherwise, false. The default is false.

 Remarks

The value of RouteLinks is used to initialize the AutoRoute property of new links. If a node is moved or resized, all links that intersect with its new position and have AutoRoute enabled are rerouted. Keep in mind that number of link segments will probably change when routing is enabled.

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.

RoutingOptions allows tuning the GridRouter algorithm. The most important options are the cost values exposed as LengthCost, TurnCost and CrossingCost properties. They greatly influence the shape of the generated route.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming.Wpf Namespace
RouteAllLinks Method
DynamicLinks Property
LinkCrossings Property
AutoSnapLinks Property