gpt4 book ai didi

c# - DXTreeList - 如何改变一些节点的颜色

转载 作者:行者123 更新时间:2023-11-30 22:47:08 24 4
gpt4 key购买 nike

我有DX treeList,它有复制、粘贴、删除等功能。如何在 C# 代码中更改某些节点颜色以更改为其他颜色?

最佳答案

你可以看看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

我希望这能回答您的问题。

关于c# - DXTreeList - 如何改变一些节点的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2341662/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com