C#, treeview, multi-colo(u)red treenode text
How can I change a color of some part of treen开发者_运维问答ode Text ?
For example,
first symbol is red, last symbols are yellow ..
Change the DrawMode property on the TreeNode to OwnerDrawText and handle the DrawNode event yourself.
Keep in mind though, that drawing the first glyph and the rest separately may cause unexpected results with complex scripts or diacritics.
精彩评论