Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我DevComponents.AdvTree.AdvTree在我新建的 c# 项目中使用。现在我想通过单击按钮更改该树的选定节点的背景颜色。我进行了很多搜索,但没有找到任何可以BackColor像普通 TreeView 控件一样设置的属性。所以,请谁能帮我设置它。提前感谢您的帮助。
DevComponents.AdvTree.AdvTree
BackColor
我自己找到了解决方案:
DevComponents.AdvTree.Node node = new DevComponents.AdvTree.Node(); node = advTree1.SelectedNode; node.Style = new DevComponents.DotNetBar.ElementStyle(); node.Style.BackColor = Color.Red;