Nevron Forum

Auto-wrap text in a NTreeViewEx when TextProcessMode set to RichText

https://www.nevron.com/Forum/Topic5865.aspx

By Patrick Bergeron - Tuesday, November 15, 2011

Is it possible to have the text in a NTreeViewEx tree node automatically wrap to the next line if the node's TextProcessMode property is set to ItemTextProcessMode.RichText?

Right now, I am having to place
elements in the text to get the break, but I would prefer to have the text size to fit the width of the node since the node tracks the width of the tree view (nTreeViewEx1.ExpandToRight = true).

If I could have my way, I would like to set the max lines to 3 and just have the node show 3 lines worth of text based on the width. If the text extends beyond 3 lines, the node would automatically show the 3 ellipsis.

Any help would be great. Thanks.
By Nevron Support - Tuesday, November 15, 2011

Hi Patrick,

You can't wrap text in NTreeViewEx nodes.
You should put break tags in your RichText formatted nodes to display text in multilines.