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.

How to programmatically set position of nodes?

Thread ID:

Created:

Updated:

Platform:

Replies:

101096 Sep 26,2011 01:48 PM Sep 27,2011 08:11 AM Windows Forms 1
loading
Tags: Diagram
Johnathan Tunnicliffe
Asked On September 26, 2011 01:48 PM

Hi Syncfusion,

I'm currently writing a layout manager but am having issues at the final step where I'm meant to set the positions of the nodes.

I have computed my positions but am having issues when setting the positions of the nodes.

In the attached image both blue nodes (far left) have been given x position 50 (i.e. they should be aligned) the green node has been given position 380 and both red nodes have been given position in 710. Each node is roughly 250 wide. I would now assume that each node would be spaced equally on the top row and both the blue and red nodes would inline in the virtual columns that i've created.

Obviously this hasn't happened as we can see from the image but I know for a fact that i'm passing in correct numbers. To set the position of the nodes I am doing the following:

Node.PinPoint = new PointF( myX, myY );

Any advice on what could be causing this strange transformation?

Thanks very much,
John



LayoutIssues_2a153799.zip

Amsath Ali M [Syncfusion]
Replied On September 27, 2011 08:11 AM

Hi Johnathan,

Thanks for your interest in Syncfusion products.

Since we are not able to get your actual intension from your query, could you please share us more information probably a sample or your layout manager’s code which reproduces the reported issue, which will be more helpful for us to provide a better solution to you?

Please let us know if you have any queries.

Regards,
Amsath Ali. M



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.

;