-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPointStyle.cs
More file actions
37 lines (30 loc) · 796 Bytes
/
Copy pathPointStyle.cs
File metadata and controls
37 lines (30 loc) · 796 Bytes
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 System.ComponentModel;
using System.Drawing;
namespace SuperPerformanceChart
{
[TypeConverter(typeof(ExpandableObjectConverter))]
public class PointStyle
{
private SolidBrush _brush;
private Color _color;
public bool Visible { get; set; } = true;
public PointStyle(Color oColor)
{
_brush = new SolidBrush(oColor);
_color = oColor;
}
[Browsable(false)]
public SolidBrush Brush { get => _brush; }
public Color Color
{
get => _color;
set
{
_color = value;
_brush.Dispose();
_brush = new SolidBrush(_color);
}
}
public float Size { get; set; } = 3;
}
}