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

LinkCmd in V5

Thread ID:





64309 Jul 18,2007 09:18 AM UTC Jul 18,2007 03:19 PM UTC WinForms 1
Tags: Diagram
Faheem Rauf
Asked On July 18, 2007 09:18 AM UTC

Hi, Can you please guide me how can I connect two node. In last version there was LinkCmd that can connect two node. How I can get same functionality in V5. I will be thankful to you. I am using Version

J.Nagarajan [Syncfusion]
Replied On July 18, 2007 03:19 PM UTC

Hi Ali,

Thanks for your interest in Syncfusion product. The LinkCmd class has been removed and use lineConnector or OrthogonalConnector instead. Please refer to the following code snippet

//Create NodeCollection to all nodes.
NodeCollection symbols = new NodeCollection();

//Create CustomNode1
MySymbol symbol1 = new MySymbol();
symbol1.PinPoint = new PointF(100 + symbol1.PinPointOffset.Width, 10 + symbol1.PinPointOffset.Height);
symbol1.EnableCentralPort = true;

//Create CustomNode2
MySymbol symbol2 = new MySymbol();
symbol2.PinPoint = new PointF(300, 200);
symbol2.EnableCentralPort = true;

int position = 0;

//Create OrthogonalConnector
OrthogonalConnector line = new OrthogonalConnector(symbol1.PinPoint, symbol2.PinPoint);


this.diagram.Model.AppendChildren(symbols, out position);



I have attached the sample that demonstrates this completely. You can download the 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.

Please sign in to access our forum

This page will automatically be redirected to the 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