forked from ahyahy/OneScriptForms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFontStyle.cs
More file actions
44 lines (38 loc) · 1.41 KB
/
FontStyle.cs
File metadata and controls
44 lines (38 loc) · 1.41 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 ("КлСтильШрифта", "ClFontStyle")]
public class ClFontStyle : AutoContext<ClFontStyle>
{
private int m_regular = (int)System.Drawing.FontStyle.Regular; // 0 Обычный шрифт.
private int m_bold = (int)System.Drawing.FontStyle.Bold; // 1 Полужирный шрифт.
private int m_italic = (int)System.Drawing.FontStyle.Italic; // 2 Шрифт курсив.
private int m_underline = (int)System.Drawing.FontStyle.Underline; // 4 Подчеркнутый шрифт.
private int m_strikeout = (int)System.Drawing.FontStyle.Strikeout; // 8 Зачеркнутый шрифт.
[ContextProperty("Жирный", "Bold")]
public int Bold
{
get { return m_bold; }
}
[ContextProperty("Зачеркнутый", "Strikeout")]
public int Strikeout
{
get { return m_strikeout; }
}
[ContextProperty("Курсив", "Italic")]
public int Italic
{
get { return m_italic; }
}
[ContextProperty("Подчеркнутый", "Underline")]
public int Underline
{
get { return m_underline; }
}
[ContextProperty("Стандартный", "Regular")]
public int Regular
{
get { return m_regular; }
}
}
}