using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; namespace IStation.WinFormUI { public class CTreeNode { /// /// ID 唯一标识 /// public long ID { get; set; } /// /// ParentID /// public string ParentID { get; set; } /// /// 显示 /// public string Caption { get; set; } /// /// 范围值 /// public string Range { get; set; } /// /// 是否可选_如果设置为false则对应节点不能聚焦(默认是TRUE) /// public bool AllowSelect { get { return _allowSelect; } set { _allowSelect = value; } } private bool _allowSelect = true; /// /// 是否只读(指控件) /// public bool IsReadOnly { get { return _isReadOnly; } set { _isReadOnly = value; } } private bool _isReadOnly = false; /// /// 标签 /// public object Tag { get; set; } /// /// 图片 /// public Image Image { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 颜色 /// public Color Color { get; set; } /// /// 宽度 /// public double DrawNodeWidthRatio { get; set; } } }