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
C# Copy Code |
---|
public bool RouteLinks { get; set; } |
Visual Basic Copy Code |
---|
Public Property RouteLinks As Boolean |
true to route links; otherwise, false. The default is false.
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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |