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.

Size a Node Programatically

Thread ID:

Created:

Updated:

Platform:

Replies:

61461 May 25,2007 01:07 PM May 28,2007 06:30 AM Windows Forms 2
loading
Tags: Diagram
ERobishaw
Asked On May 25, 2007 01:07 PM

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 01:33 AM


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.


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


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.

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.

;