Routes links by applying patterns of segment and turn sequences and accepting them when resulting paths do not cross nodes.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public class PatternRouter : ILinkRouter |
Visual Basic Copy Code |
---|
Public Class PatternRouter |
You can add custom patterns to the Patterns list, or replace the standard patterns altogether. Patterns are defined using RoutePattern and RouteStep objects.
The following code defines a Z-like link route that will be accepted if it does not cross Obstacle nodes, nor passes by them within MinimumDistance.
C# Copy Code |
---|
var rightZigzag = new RoutePattern(); |
System.Object
MindFusion.Diagramming.Wpf.PatternRouter
WpfDiagram Programmer's Guide | © 2024 MindFusion |