forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnchorStyles.cs
More file actions
44 lines (38 loc) · 1.75 KB
/
AnchorStyles.cs
File metadata and controls
44 lines (38 loc) · 1.75 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
using ScriptEngine.Machine.Contexts;
namespace osf
{
[ContextClass ("КлСтилиПривязки", "ClAnchorStyles")]
public class ClAnchorStyles : AutoContext<ClAnchorStyles>
{
private int m_none = (int)System.Windows.Forms.AnchorStyles.None; // 0 Элемент управления не привязан к краям контейнера.
private int m_top = (int)System.Windows.Forms.AnchorStyles.Top; // 1 Элемент управления привязан к верхнему краю своего контейнера.
private int m_bottom = (int)System.Windows.Forms.AnchorStyles.Bottom; // 2 Элемент управления привязан к нижнему краю своего контейнера.
private int m_left = (int)System.Windows.Forms.AnchorStyles.Left; // 4 Элемент управления привязан к левому краю своего контейнера.
private int m_right = (int)System.Windows.Forms.AnchorStyles.Right; // 8 Элемент управления привязан к правому краю своего контейнера.
[ContextProperty("Верх", "Top")]
public int Top
{
get { return m_top; }
}
[ContextProperty("Лево", "Left")]
public int Left
{
get { return m_left; }
}
[ContextProperty("Низ", "Bottom")]
public int Bottom
{
get { return m_bottom; }
}
[ContextProperty("Отсутствие", "None")]
public int None
{
get { return m_none; }
}
[ContextProperty("Право", "Right")]
public int Right
{
get { return m_right; }
}
}
}