Profile Picture

NTreeViewEx Node Text Wrapping

Posted By igor komarnitski 10 Years Ago

NTreeViewEx Node Text Wrapping

Author
Message
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.


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: 1 days ago @ 4:39 AM
Posts: 3,054, Visits: 4,018
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
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: 1 days ago @ 4:39 AM
Posts: 3,054, Visits: 4,018
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





Similar Topics


Reading This Topic

1 active, 1 guest, 0 members, 0 anonymous.
No members currently viewing this topic!