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. Image for the cookie policy date

How to programmatically set position of nodes?

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

1 Reply

AA Amsath Ali M Syncfusion Team 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.

Regards,
Amsath Ali. M



Loader.
Up arrow icon