forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGridItemType.cs
More file actions
37 lines (32 loc) · 1.79 KB
/
GridItemType.cs
File metadata and controls
37 lines (32 loc) · 1.79 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
using ScriptEngine.Machine.Contexts;
namespace osf
{
[ContextClass ("КлТипЭлементаСетки", "ClGridItemType")]
public class ClGridItemType : AutoContext<ClGridItemType>
{
private int m_property = (int)System.Windows.Forms.GridItemType.Property; // 0 Компонент сетки, соответствующий свойству.
private int m_category = (int)System.Windows.Forms.GridItemType.Category; // 1 Компонент сетки, являющийся именем категории. Категория представляет собой описательную классификацию групп строк <A href="OneScriptForms.GridItem.html">ЭлементСетки (GridItem)</A>. К типовым категориям относятся <B>Поведение</B>, <B>Макет</B>, <B>Данные</B> и <B>Внешний вид</B>.
private int m_arrayValue = (int)System.Windows.Forms.GridItemType.ArrayValue; // 2 Компонент сетки, соответствующий элементу массива.
private int m_root = (int)System.Windows.Forms.GridItemType.Root; // 3 Корневой элемент в иерархии сетки.
[ContextProperty("Категория", "Category")]
public int Category
{
get { return m_category; }
}
[ContextProperty("Корневой", "Root")]
public int Root
{
get { return m_root; }
}
[ContextProperty("Свойство", "Property")]
public int Property
{
get { return m_property; }
}
[ContextProperty("ЭлементМассива", "ArrayValue")]
public int ArrayValue
{
get { return m_arrayValue; }
}
}
}