DX TreeList - 如何改变一些节点的颜色 [英] DX TreeList - How to chango color of some Node

查看:493
本文介绍了DX TreeList - 如何改变一些节点的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有DX treeList,它有一些功能,如复制,粘贴,删除等。

解决方案

你可以看看

a href =http://64.237.51.130/Help/?document=XtraTreeList =nofollow noreferrer>此处


单个单元格的外观可以通过处理
TreeList.NodeCellStyle事件来定制
。这
事件被触发的每个单元格之前
它的画。改变
单元外观的另一种方法是处理
TreeList.CustomDrawNodeCell事件。
请注意,当打印控制项
并导出时,通过自定义绘制事件更改
元素的外观不是
。有关
实现自定义绘画的更多信息,请参阅
自定义绘制


我希望能回答您的问题。 / p>

i have DX treeList, it has some functionality like copy, paste, delete and so on. How to do in C# code, to change some Node color to change to some other color?

解决方案

You could take a look here

The appearance of individual cells can be customized by handling the TreeList.NodeCellStyle event. This event is fired for each cell before it's painted. The other way to change the appearance of cells is to handle the TreeList.CustomDrawNodeCell event. Note that changing the appearance of elements via custom draw events is not in effect when the control is printed and exported. For more information on implementing custom painting, see Custom Draw

I hope that answers your question.

这篇关于DX TreeList - 如何改变一些节点的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆