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.
Syncfusion Feedback

Changing OrthogonalLine directions

Thread ID:

Created:

Updated:

Platform:

Replies:

52680 Dec 1,2006 11:02 AM Dec 4,2006 12:15 PM Windows Forms 2
loading
Tags: Diagram
Robert Maxey
Asked On December 1, 2006 11:02 AM

I have 2 nodes on the diagram and am drawing an OrthogonalLine shaped link (actually my class derived from Link) between them.

The line goes left then down, and I want it to go down then left.

How can I make this happen? I have tried overriding the CreateLinkShape method and setting the HeadingEndPoint1 direction, but I am having problems with this approach.

Thanks for your help!

J.Nagarajan [Syncfusion]
Replied On December 1, 2006 06:25 PM

Hi Bob,

If your intention is to change the direction of orthogonal Line's direction then you can customizing the properties of Link and try to add your custom implementations to it. I have created a sample that demonstrates this behavior completely. Please look into it, in particular the ConnectNodes () method and the MouseMove and MouseDown events in the Form.cs file, which will help you to have a clear idea on how to go with this.

I hope this will meet your requirement. Please let me know if this not helps you.

Regards,
Nagaraj

CustomOrthogonalLink_Sample.zip


Administrator [Syncfusion]
Replied On December 4, 2006 12:15 PM



>Hi Bob,

If your intention is to change the direction of orthogonal Line's direction then you can customizing the properties of Link and try to add your custom implementations to it. I have created a sample that demonstrates this behavior completely. Please look into it, in particular the ConnectNodes () method and the MouseMove and MouseDown events in the Form.cs file, which will help you to have a clear idea on how to go with this.

I hope this will meet your requirement. Please let me know if this not helps you.

Regards,
Nagaraj

CustomOrthogonalLink_Sample.zip




Thanks I will look into it. I am in the middle of something else right now, so it will be a week or so...

Bob

CONFIRMATION

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.

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

;