We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

orthogonal lines and routing

Is it possible to control the routing of orthogonal line segments so that they do not overlap? I'm currently using orthogonal connectors to connect the central points of shapes. Using the symmetric layout manager, the lines tend to overlap but I'd prefer it if lines were distributed evenly around the originating and terminating shapes.


1 Reply

AA Amsath Ali M Syncfusion Team March 9, 2011 01:22 PM UTC

Hi Scott,
Thanks for using Syncfusion products.
Yes, it is possible to control the routing of orthogonal connector. The routing of a connector is controlled by diagram control model properties “LineRoutingEnabled”,”LineBridgingEnabled” and “LineRouter” .By default the LineRouting Enabled and LineBridgingEnabled Properties are ‘false’ we suggest you to set those property to ‘true’ to enable the line routing and also set the LineRouter property to ‘Automatic’ in order to make line routing automatically.
Please refer the below code snippet:
[C#]

this.diagram1.Model.LineRoutingEnabled = true;
this.diagram1.Model.LineBridgingEnabled = true;
this.diagram1.Model.LineRouter.RoutingMode = RoutingMode.Automatic;


We have an online UG documentation for Line Routing. Please refer the below link for more information.
http://help.syncfusion.com/ug_91/User%20Interface/Windows%20Forms/Diagram/Documents/422linerouting.htm
http://help.syncfusion.com/ug_91/User%20Interface/Windows%20Forms/Diagram/Documents/421linebridging.htm
Please let me know your concerns.
Regards,
Amsath Ali M



Loader.
Live Chat Icon For mobile
Up arrow icon