TreeList 选中节点时图标状态和背景色
2013-01-29 10:28
225 查看
this.treelArea.SelectImageList = imglCustom;
this.treelArea.OptionsView.ShowFocusedFrame;
this.treelArea.Appearance.FocusedCell.BackColor = System.Drawing.Color.LightSteelBlue;
this.treelArea.Appearance.FocusedCell.BackColor2 = System.Drawing.Color.SteelBlue;
this.treelArea.Appearance.FocusedCell.Options.UseBackColor = true;
this.treelArea.Appearance.FocusedCell.Options.UseTextOptions = true;
this.treelArea.Appearance.FocusedCell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
private void treelArea_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
{
e.NodeImageIndex = e.Node.Expanded ? 0 : e.Node.Nodes.Count > 0 ? 1 : 2;
if (e.FocusedNode)
{
e.NodeImageIndex += 3;
}
}
this.treelArea.OptionsView.ShowFocusedFrame;
this.treelArea.Appearance.FocusedCell.BackColor = System.Drawing.Color.LightSteelBlue;
this.treelArea.Appearance.FocusedCell.BackColor2 = System.Drawing.Color.SteelBlue;
this.treelArea.Appearance.FocusedCell.Options.UseBackColor = true;
this.treelArea.Appearance.FocusedCell.Options.UseTextOptions = true;
this.treelArea.Appearance.FocusedCell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
private void treelArea_GetSelectImage(object sender, DevExpress.XtraTreeList.GetSelectImageEventArgs e)
{
e.NodeImageIndex = e.Node.Expanded ? 0 : e.Node.Nodes.Count > 0 ? 1 : 2;
if (e.FocusedNode)
{
e.NodeImageIndex += 3;
}
}
相关文章推荐
- 【转】TreeList 选中节点时图标状态和背景色
- TreeList 选中节点时图标状态和背景色
- [转] TreeList 当前节点图标和背景色设置
- TreeList 选中节点时图标状态和背景色
- Devexpress TreeList 展开和折叠当前选中节点
- DEV 添加、修改数据后 treeList展示原节点状态
- DEV treeList 获取 ListcheckBox选中节点内容
- DevExpress设置TreeList图片节点背景色的方法
- TreeList右击选中节点
- [DevExpress]获取TreeListNode选中节点全部路径信息
- TreeList的父节点展开和收缩子节点时,图标为“+”“—”
- DevExpress实现TreeList父子节点CheckState状态同步的方法
- ExtJs Treepanel节点checkbox的半选中状态复选框效果
- 如何设置TreeList控件中选中单元的背景色
- DEV TreeList 节点图标重绘的小技巧
- 关于 extjs treepanel 复选框 选中 父节点 的问题
- extjs treepanel 动态的加载节点,选中父节点时,同时选中下面的子节点
- Dev TreeList添加自带节点搜索
- C#开发学习笔记:Dev控件库的TreeList动态添加节点
- Flex学习总结之一—— Tree 设置子节点小图标