-
Notifications
You must be signed in to change notification settings - Fork 0
/
LineStyle.cs
60 lines (50 loc) · 1.08 KB
/
LineStyle.cs
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
using System.ComponentModel;
using System.Drawing;
namespace SuperPerformanceChart
{
[TypeConverter(typeof(ExpandableObjectConverter))]
public class LineStyle
{
public bool Visible { get; set; } = true;
private Pen m_pen;
public LineStyle(Color oColor)
{
m_pen = new Pen(oColor, 2);
}
[Browsable(false)]
public Pen Pen { get => m_pen; }
public Color Color
{
get
{
return m_pen.Color;
}
set
{
m_pen.Color = value;
}
}
public System.Drawing.Drawing2D.DashStyle DashStyle
{
get
{
return m_pen.DashStyle;
}
set
{
m_pen.DashStyle = value;
}
}
public float Width
{
get
{
return m_pen.Width;
}
set
{
m_pen.Width = value;
}
}
}
}