c# - DX TreeList - 如何更改某些节点的颜色

标签 c# colors devexpress nodes treelist

我有DX树列表,它有一些功能,如复制、粘贴、删除等。如何在 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# - DX TreeList - 如何更改某些节点的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2341662/

相关文章:

c# - VS2005 C# : is there a special visual-studio way to create properties or can the the code just be typed out?

css - 删除在命名的 CSS 颜色上突出显示的激烈 Sublime Text 语法

c# - 如何更改 DevExpress GridView 中一行的背景颜色?

delphi - 带有未绑定(bind)列的 Devexpress 网格

c# - 如何在 Windows Phone 7 中以编程方式检索下载的文件?

c# - 如何使用 C# 获取给定路径(可以是目录或文件,甚至是完整路径)的完整路径?

c# - 如何更改在预览 Pane 中显示或打开的 MailItem

java - Vaadin ComboBox 文本颜色扩展

c# - ColorTranslator.FromHtml() 到底支持什么,为什么会偏离 CSS 颜色解释规则?

asp.net - Devexpress Aspxmenu 和 Font Awesome