Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to wrap text in a node and keep words together (Read 1403 times)
Joost
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Jun 18th, 2020
How to wrap text in a node and keep words together
Jul 13th, 2020 at 7:02am
Print Post  
When the text in a Node is wrapped (by use of TextFormat.WrapText=true), words are often split over 2 lines. How can we keep words together and only wrap on spaces instead of in the middle of words?
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: How to wrap text in a node and keep words together
Reply #1 - Jul 13th, 2020 at 10:35am
Print Post  
Hi,

Currently, the control doesn't provide alternative wrapping features - we'll try to add more wrap customization in a next release.

Until then, a workaround approach would be to use the Graphics.MeasureString method to obtain the width of the node text and then resize the node via the Bounds property to fit it.

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