具有多色 TreeNode 文本的 TreeView
我需要让 TreeView 中节点内的文本在单词或字符内着色。这可能吗?该怎么走呢?我听说过自定义绘图,但没有经验!
I need to have the text within a node in TreeView to be colored within words or characters. Is that possible? What is the way to go? I heard of Custom Drawing but have no experience with it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
设置 TreeView 的属性:
然后从 DrawNode 事件:
更多来自 MSDN: TreeView.DrawNode 事件
Set the property of the TreeView:
Then from the DrawNode event:
More from MSDN: TreeView.DrawNode Event