Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need Truncating of ShapeNode's Text (Read 1653 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Need Truncating of ShapeNode's Text
May 14th, 2009 at 1:05pm
Print Post  
Hi,

I have created a Shape Node and put some text for it say "Shape Node Trial-Node1".

My node width is small and this text is large compare to the node. So I want this text should be truncated with respect to the width of the node, so in this case text should be displayed like this "Shape No.." .The remaining text should be truncated and represented by "..".

Is there any property for this?

Thanks,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need Truncating of ShapeNode's Text
Reply #1 - May 14th, 2009 at 2:39pm
Print Post  
This should display ellipsis, but does not work yet with our styled text formatting algorithm, so you will see them only if EnableStyledText is set to false:

node.TextFormat.Trimming = StringTrimming.EllipsisCharacter;
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Need Truncating of ShapeNode's Text
Reply #2 - May 15th, 2009 at 4:14am
Print Post  
Thanks stoyan, its working Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint