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

A link that is both directed and Orthogonal?

Thread ID:

Created:

Updated:

Platform:

Replies:

77795 Nov 18,2008 05:08 AM UTC Nov 18,2008 02:08 PM UTC WinForms 5
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 18, 2008 05:08 AM UTC

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

Thanks


Administrator [Syncfusion]
Replied On 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



Administrator [Syncfusion]
Replied On 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





Administrator [Syncfusion]
Replied On November 18, 2008 12:26 PM UTC

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


Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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


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

;