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

Size a Node Programatically

Thread ID:





61461 May 25,2007 05:07 PM UTC May 28,2007 10:30 AM UTC WinForms 2
Tags: Diagram
Asked On May 25, 2007 05:07 PM UTC

Used to be able to set the X,Y, Width and Height properties of a Node...

Now, it appears the only means to size a node programatically from outside the node is by the Scale() method. (The BoundingRect property is protected)

Am I missing something, or is that the only way?
I want to set the size and location w/o having to compute the scale offsets.

Meera Fathima [Syncfusion]
Replied On May 28, 2007 05:33 AM UTC

Hi Eric,

If your intension is to set the node's size and location,

1. Node.Size property can be used to set the size of a Node.

2. Node.PinPoint property can be used to set the location of a Node.

Please let me know if I understand your requirement correctly. Also dont hesitate to update us if you have any more queries regarding this. We will be glad to assist you.

Many Thanks,

Ramya R [Syncfusion]
Replied On May 28, 2007 10:30 AM UTC

Hi Eric,

Thank you for your interest in Syncfusion Products.

You can change the size of a node by setting its Size property and also can change the node's location by setting its PinPoint property as shown in the code snippet below,

//Sets the size of a node
node.Size = new SizeF(30, 30);
//Sets the location of a node
node.PinPoint = new PointF(200, 200);

Let me know whether this helps you.

Thanks & Regards,


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