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

set direction of start and endpoint of a link

Thread ID:





52425 Nov 28,2006 02:36 PM UTC Nov 28,2006 05:44 PM UTC WinForms 1
Tags: Diagram
Alexander Ulrich
Asked On November 28, 2006 02:36 PM UTC


I'm currently evaluating Essential Diagram and I'd like to know if it is possible to specify the link direction at a port. I managed to work out an example, where a symbol exactly has the same number of ports as links (trivial for you I think). Now I want to specify that specific ports, let's say the ports are at the top of the symbol, only allow links with a vertical first segment.

Do I have to implement such a feature by myself, or is it possible to modify a implemented class for this purpose?

Thank you for your comments,


J.Nagarajan [Syncfusion]
Replied On November 28, 2006 05:44 PM UTC

Hi Alexander ,

Thanks for your interest in Essential Diagram. If your intention is to draw links to the ports at the top of the symbol then please refer to the following code snippet

//In Initialize component

//In AddLink Button click event
LinkCmd linkcmd = new LinkCmd();
for (int i = 0; i <=4; i++)
Link link = new Link(Link.Shapes.OrthogonalLine);
linkcmd.SourcePort = rectangle.Ports[i];
linkcmd.TargetPort = roundrect.Ports[i];
linkcmd.Link = link;

Please refer to the attached sample. In this sample when you click on "AddSymbols" button you can load 2 symbols and when you click on the "Add Link" button then the link should be connected only on to ports on the top of the symbols.

I hope this will meet your requirement. Please give us some more details about your requirement or provide us some screen shots if this doesn't helps.


Dynamic Link.zip


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