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

How to programmatically set position of nodes?

Thread ID:





101096 Sep 26,2011 05:48 PM UTC Sep 27,2011 12:11 PM UTC WinForms 1
Tags: Diagram
Johnathan Tunnicliffe
Asked On September 26, 2011 05:48 PM UTC

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,


Amsath Ali M [Syncfusion]
Replied On September 27, 2011 12:11 PM UTC

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.

Amsath Ali. M


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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