forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColumnHeader.cs
More file actions
145 lines (119 loc) · 4.01 KB
/
ColumnHeader.cs
File metadata and controls
145 lines (119 loc) · 4.01 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
using ScriptEngine.Machine.Contexts;
namespace osf
{
public class ColumnHeaderEx : System.Windows.Forms.ColumnHeader
{
public osf.ColumnHeader M_Object;
}
public class ColumnHeader
{
public ClColumnHeader dll_obj;
public ColumnHeaderEx M_ColumnHeader;
public int SortType;
public ColumnHeader()
{
M_ColumnHeader = new ColumnHeaderEx();
M_ColumnHeader.M_Object = this;
SortType = 0;
}
public ColumnHeader(System.Windows.Forms.ColumnHeader p1)
{
M_ColumnHeader = (ColumnHeaderEx)p1;
M_ColumnHeader.M_Object = this;
SortType = 0;
}
public ColumnHeader(osf.ColumnHeader p1)
{
M_ColumnHeader = p1.M_ColumnHeader;
M_ColumnHeader.M_Object = this;
SortType = 0;
}
public ColumnHeader(string text, int width, System.Windows.Forms.HorizontalAlignment alignment)
{
M_ColumnHeader = new ColumnHeaderEx();
if (text is string)
{
M_ColumnHeader.Text = text;
}
M_ColumnHeader.Width = width;
M_ColumnHeader.TextAlign = (System.Windows.Forms.HorizontalAlignment)alignment;
M_ColumnHeader.M_Object = this;
SortType = 0;
}
//Свойства============================================================
public int Index
{
get { return M_ColumnHeader.Index; }
}
public string Text
{
get { return M_ColumnHeader.Text; }
set { M_ColumnHeader.Text = value; }
}
public int TextAlign
{
get { return (int)M_ColumnHeader.TextAlign; }
set { M_ColumnHeader.TextAlign = (System.Windows.Forms.HorizontalAlignment)value; }
}
public int Width
{
get { return M_ColumnHeader.Width; }
set { M_ColumnHeader.Width = value; }
}
//Методы============================================================
}
[ContextClass ("КлКолонка", "ClColumnHeader")]
public class ClColumnHeader : AutoContext<ClColumnHeader>
{
public ClColumnHeader()
{
ColumnHeader ColumnHeader1 = new ColumnHeader();
ColumnHeader1.dll_obj = this;
Base_obj = ColumnHeader1;
}
public ClColumnHeader(ColumnHeader p1)
{
ColumnHeader ColumnHeader1 = p1;
ColumnHeader1.dll_obj = this;
Base_obj = ColumnHeader1;
}
public ClColumnHeader(string p1, int p2, int p3)
{
ColumnHeader ColumnHeader1 = new ColumnHeader(p1, p2, (System.Windows.Forms.HorizontalAlignment)p3);
ColumnHeader1.dll_obj = this;
Base_obj = ColumnHeader1;
}
public ColumnHeader Base_obj;
//Свойства============================================================
[ContextProperty("ВыравниваниеТекста", "TextAlign")]
public int TextAlign
{
get { return (int)Base_obj.TextAlign; }
set { Base_obj.TextAlign = value; }
}
[ContextProperty("Индекс", "Index")]
public int Index
{
get { return Base_obj.Index; }
}
[ContextProperty("Текст", "Text")]
public string Text
{
get { return Base_obj.Text; }
set { Base_obj.Text = value; }
}
[ContextProperty("ТипСортировки", "SortType")]
public int SortType
{
get { return (int)Base_obj.SortType; }
set { Base_obj.SortType = value; }
}
[ContextProperty("Ширина", "Width")]
public int Width
{
get { return Base_obj.Width; }
set { Base_obj.Width = value; }
}
//Методы============================================================
}
}