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.

A link that is both directed and Orthogonal?

Thread ID:

Created:

Updated:

Platform:

Replies:

77795 Nov 18,2008 12:08 AM Nov 18,2008 09:08 AM Windows Forms 5
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 18, 2008 12:08 AM

Hi, as per question how do we create a link that is both directed and Orthogonal?

Thanks


Administrator [Syncfusion]
Replied On November 18, 2008 01:01 AM

Hi Ameel,

The following code snippet helps create an Orthogonal connector and defines the direction it must connect.

Code:
******************

OrthogonalConnector m_connector = new OrthogonalConnector(PointF.Empty, new PointF(50, 50));

m_connector.HeadDecorator.DecoratorShape = DecoratorShape.Open45Arrow;

m_connector.HeadingHead = CompassHeading.North;

m_connector.HeadingTail = CompassHeading.West;

******************

I am sure this will resolve your query.

Post your comments if you need any further clarifications, Thanks!

- Ajeet



Administrator [Syncfusion]
Replied On November 18, 2008 01:50 AM

Thanks, but I'm not sure how to use that snippet.
First thing, is that I'm using VB .net on VS 2008
Let me rephrase.

I have button that has, for click event, code:
Diagram1.Controller.ActivateTool("DirectedLineTool")
When user clicks the button, too is activated, and user can connect two nodes with the directedlinetool.
I want to use a Directed Orthogonal line/tool instead.
How do i do that?

>Hi Ameel,

The following code snippet helps create an Orthogonal connector and defines the direction it must connect.

Code:
******************

OrthogonalConnector m_connector = new OrthogonalConnector(PointF.Empty, new PointF(50, 50));

m_connector.HeadDecorator.DecoratorShape = DecoratorShape.Open45Arrow;

m_connector.HeadingHead = CompassHeading.North;

m_connector.HeadingTail = CompassHeading.West;

******************

I am sure this will resolve your query.

Post your comments if you need any further clarifications, Thanks!

- Ajeet





Administrator [Syncfusion]
Replied On November 18, 2008 07:26 AM

Dnt worry about it. I got around it somehow ^__^
Syncfusion products pretty good.


Administrator [Syncfusion]
Replied On November 18, 2008 07:45 AM

Hi Ameel,

The required file is attached herewith this mail and is coded for you in VB.

Keep up the coding spirits and Happy Coding!

- Ajeet



Test_VB_c128fc87.zip

Administrator [Syncfusion]
Replied On November 18, 2008 09:08 AM

Hi Ajeet,
thanks for the solution you attached.
The syncfusion product is v.powerful, but there's no extensive documentation :(
Online Support is just awesome though ^__^ +10

Thanks

>Hi Ameel,

The required file is attached herewith this mail and is coded for you in VB.

Keep up the coding spirits and Happy Coding!

- Ajeet



Test_VB_c128fc87.zip


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.

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.

;