A link that is both directed and Orthogonal?

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

Thanks


5 Replies

AD Administrator Syncfusion Team November 18, 2008 06:01 AM UTC

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




AD Administrator Syncfusion Team November 18, 2008 06:50 AM UTC

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






AD Administrator Syncfusion Team November 18, 2008 12:26 PM UTC

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



AD Administrator Syncfusion Team November 18, 2008 12:45 PM UTC

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


AD Administrator Syncfusion Team November 18, 2008 02:08 PM UTC

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


Loader.
Up arrow icon