Profile Picture

NTreeViewEx Node Text Wrapping

Posted By igor komarnitski 10 Years Ago
Author
Message
Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
When text is in RichText mode you only can make a new line manually using <br /> tag.
In TreeList Notes example the text is in GdiPlus mode.

Best Regards,
Nevron Support Team



igor komarnitski
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 2, Visits: 4
Tried this solution. Still no effect. The node became bigger in size but still straight line when i resize  treeviewEx control. It's import to know if the WordWrap is working using RichText mode and if  height of the mode can be auto sized. I see this effect in Tree List Notes example.

Thank you.  

Nevron Support
Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 Weeks Ago
Posts: 3,054, Visits: 4,015
Hi,
You need to set size attribute of font tag:

int someSize = 30;
nTreeViewEx1.Nodes[0].Text = "<font size=\'" + someSize.ToString() + "\'>Some Text</font>";


I hope this helps.

Best Regards,
Nevron Support Team



igor komarnitski
Question Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 2, Visits: 4

Hi. We just want to know if the node text can be automatically wrapped on control resizing when we use ItemTextProcessMode = RichText
And if yes, can you point us where is the documentation about RichText tags and NTreeViewEx?

Thank you.




Similar Topics


Reading This Topic