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.
Unfortunately, activation email could not send to your email. Please try again.

How do setting OrthogonalConnector automatic steer clear of fraise

Thread ID:





64108 Jul 13,2007 10:42 PM Jul 17,2007 04:05 PM Windows Forms 3
Tags: Diagram
Asked On July 13, 2007 10:42 PM

Dear Mr. or Ms.
How do setting OrthogonalConnector
automatic steer clear of fraise?
Thank you!

Meera Fathima [Syncfusion]
Replied On July 16, 2007 09:36 AM

Hello Lx,

Thanks for your interest in Syncfusion products.

If your intention is to create orthogonal line connector between nodes, you can achieve this by using the OrthogonalConnector class that is available in Essential Diagram. This is demonstrated in many of the diagram samples. Please refer the Diagram Samples\In Depth\NetWork Flow Model sample's Form1.ConnectNodes(...) method.

Below is the sample code snippet for your reference.

PointF[] pts = new PointF[]{ PointF.Empty, new PointF( 0,1 ) };
OrthogonalConnector line = new OrthogonalConnector( pts[0], pts[1] );
line.HeadDecorator.DecoratorShape = DecoratorShape.Filled45Arrow;

this.diagram1.Model.AppendChild( line );

parentNode.CentralPort.TryConnect( line.TailEndPoint );
subNode.CentralPort.TryConnect( line.HeadEndPoint );

Please look into the sample and if I have misunderstood your requirement, could you please explain me in detail, so that I can work in
depth and try to send a better solution?

Best Regards,

Syncfusion, Inc.

Replied On July 16, 2007 08:25 PM

Hello Meera Fathima!
Thank your helps
Our requirement in that file.


J.Nagarajan [Syncfusion]
Replied On July 17, 2007 04:05 PM

Hi LX,

Thanks for the diagram file. If you want to automatically change the line routing of the Orthogonal Connector, then you have to set Model.LineRoutingEnabled property to true. Please refer to the following code snippet.

this.diagram.Model.LineRoutingEnabled = true;
OrthogonalConnector line = new OrthogonalConnector(symbol1.PinPoint, symbol2.PinPoint);
symbols.Add( line );
this.diagram.Model.AppendChildren(symbols, out position);

I have attached the sample that demonstrates this completely. You can download this sample from the following page.


Please refer to the sample and let me know if you have any questions.



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.

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.