zoukankan      html  css  js  c++  java
  • WinForm------TreeList属性介绍

    转载:

    http://blog.csdn.net/fwj380891124/article/details/6888077

      treeList1.LookAndFeel.UseWindowsXPTheme = true;    //使用XP主题
      treeList1.LookAndFeel.UseDefaultLookAndFeel = false;

      treeList1.OptionsView.ShowColumns = false;       //隐藏列名

      treeList1.OptionsView.ShowColumns = false;       //显示展开按钮

    treelist1.OptionView.ShowIndicator = false;    //隐藏最前面的行指示列

      treeList1.Appearance.FocusedCell.BackColor = Color.LightSteelBlue;    //焦点行颜色渐变
      treeList1.Appearance.FocusedCell.BackColor2 = Color.SteelBlue;

      treeList1.OptionsView.ShowHorzLines = false;     //隐藏行列边框
      treeList1.OptionsView.ShowVertLines = false;

      treeList1.OptionsView.FocusRectStyle = DevExpress.XtraTreeList.DrawFocusRectStyle.None;  //隐藏焦点行边框

    另附:

    修改节点文字

    var node = treeList1.FocusedNode;
    node["Name"] = "新名";

    删除焦点节点

    var node = treeList1.FocusedNode;
    treeList1.DeleteNode(node);
  • 相关阅读:
    单例模式
    二、CSS
    十一、多线程
    十二、协程
    十、多进程
    九、内存管理
    八、元类
    七、上下文管理器/魔术方法
    六、单例模式
    五、装饰器
  • 原文地址:https://www.cnblogs.com/tianhengblogs/p/5760865.html
Copyright © 2011-2022 走看看