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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

OrgLineConnector Multiple Points?

Thread ID:





118992 May 1,2015 06:26 PM UTC May 5,2015 06:53 AM UTC WinForms 1
Tags: Diagram
Kenneth Garmon
Asked On May 1, 2015 06:26 PM UTC


I'm implementing a flowchart that will need to have some complex line routing. Currently I'm using the OrgLineConnector to connect nodes, but if a line is connected to a node further down in the chart the OrgLineConnector will go right over the nodes. Is there anyway to add multiple points to the Line so that I can set where the line turns? Or someway to treat nodes as obstacles so that the line will automatically route around them? I'm thinking I might have to construct a large line out of multiple lines connected at specified points to circumvent the nodes, but I would like to avoid that if possible. Any Ideas?


Naganathan Ganesh Babu [Syncfusion]
Replied On May 5, 2015 06:53 AM UTC

Hi Kenneth,

Thanks for using Syncfusion product.

We are glad to inform you that we have created simple sample to achieve your requirement. We suggest you to use Diagram.Model “LineRoutingEnabled” property to set true and set Diagram.Model.LineRouter’s “RoutingMode” property to set as Automatic to the connector which automatically route’s the connector around the nodes when any obstacles occurred. Please refer the below attached sample, code snippet and video for your references.

Here is the code snippet:


//set true to enable the model's line routing

diagram1.Model.LineRoutingEnabled = true;

//set Automatically routing the line
diagram1.Model.LineRouter.RoutingMode = RoutingMode.Automatic;

OrgLineConnector line = new OrgLineConnector(new PointF(0, 0), new PointF(300, 300));

//set true to enabling the line routing

line.LineRoutingEnabled = true;

Here is the sample:


Here is the video:


Please let us know if any concerns.


Naganathan K G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon