Size a Node Programatically

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.

2 Replies

MF Meera Fathima Syncfusion Team 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,
Meera.



RR Ramya R Syncfusion Team 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,
Ramya.

Loader.
Up arrow icon