Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resize nodes based on changing text (Read 1343 times)
Sam
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 3rd, 2009
Resize nodes based on changing text
May 21st, 2010 at 8:50am
Print Post  
Hi, we want to allow an option to show either detailed or summary text in the node, but when changing the text property of the node it doesn't resize.  I sthere a method I can call to resize the noed such that it fits the text?  I can see a ResizeToFitText method in the ASP.NET documentation but not the Windows Forms.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Resize nodes based on changing text
Reply #1 - May 21st, 2010 at 8:59am
Print Post  
Hi,

There is ResizeToFitText method in Windows Forms too. It's defined in ShapeNode, TableNode and TreeViewNode. You can't call it through the base DiagramNode class though - the different nodes take different kinds of arguments for their resize methods so it's not defined in the base class.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint