ningshuxia
2023-05-06 657c344695223f01bade2776803f719673232f81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
 
namespace IStation.WinFormUI
{
    public class CTreeNode
    {
        /// <summary>
        /// ID 唯一标识
        /// </summary>
        public long ID { get; set; }
 
        /// <summary>
        /// ParentID
        /// </summary>
        public string ParentID { get; set; }
 
        /// <summary>
        /// 显示
        /// </summary>
        public string Caption { get; set; }
 
        /// <summary>
        /// 范围值
        /// </summary>
        public string Range { get; set; }
 
        /// <summary>
        /// 是否可选_如果设置为false则对应节点不能聚焦(默认是TRUE)
        /// </summary>
        public bool AllowSelect
        {
            get { return _allowSelect; }
            set { _allowSelect = value; }
        }
        private bool _allowSelect = true;
         
        /// <summary>
        /// 是否只读(指控件)
        /// </summary>
        public bool IsReadOnly
        {
            get { return _isReadOnly; }
            set { _isReadOnly = value; }
        }
        private bool _isReadOnly = false;
 
        /// <summary>
        /// 标签
        /// </summary>
        public object Tag { get; set; }
 
        /// <summary>
        /// 图片
        /// </summary>
        public Image Image { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>
        public int SortCode { get; set; }
 
        /// <summary>
        /// 颜色
        /// </summary>
        public Color Color { get; set; }
 
        /// <summary>
        /// 宽度
        /// </summary>
        public double DrawNodeWidthRatio { get; set; }
    }
}