Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to resize height & width of a shape node? (Read 2805 times)
deepak
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Jun 29th, 2011
How to resize height & width of a shape node?
Jul 27th, 2011 at 9:30am
Print Post  
Hi,


I added the items to the diagram node from tree node. In one diagram node I can add multiple items.
By default in one diagram node 2 items display. If the number the items increase the height of the diagram node also increased.

How to resize height & width of a shape node as per text length or number of items added?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: How to resize height & width of a shape no
Reply #1 - Jul 27th, 2011 at 10:24am
Print Post  
You have to measure the node content and set the DiagramNode.Bounds property to the appropriate value so that the content fits. If you are more specific with the actual content of the node I may be able to provide additional tips on how to measure it.

Regards,
Meppy
  
Back to top
 
IP Logged
 
deepak
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Jun 29th, 2011
Re: How to resize height & width of a shape no
Reply #2 - Jul 27th, 2011 at 11:31am
Print Post  
Please give me some tips to measure the appropriate value.

Actually I have one listbox & another one treelist. First I drag the item from listbox (i.e. Process Node) & drop on diagramview. In this process node (from diagramview) I drop items from treelist.

I set the DiagramNode.Bounds property. But after set this property I have added some items (from treelist). I want to display these items & set the DiagramNode as per these items. 
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: How to resize height & width of a shape no
Reply #3 - Jul 27th, 2011 at 12:43pm
Print Post  
I am still uncertain of what your node content looks like. If it is text only, you can use the ShapeNode.ResizeToFitText method to resize the node so that its content is completely visible. If not, can you please post here (or send to support@mindfusion.eu) a picture of what your nodes look like?

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint