DX TreeList - 如何改变一些节点的颜色 [英] DX TreeList - How to chango color of some Node
问题描述
我有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屋!