Remark.cs
1.3 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace ZedGraph
{
public class Remark
{
private Color _fillColor;
private Color _lineColor;
private string _text;
private RectangleF _rectangle;
private int _length;
private PointF _startPoint;
public Remark( Color fillColor,Color lineColor,RectangleF rectangle, PointF startPoint,string text)
{
_startPoint = startPoint;
_rectangle = rectangle;
_fillColor = fillColor;
_lineColor=lineColor;
_text = text;
}
public Color LineColor
{
get { return _lineColor; }
set { _lineColor = value; }
}
public Color FillColor
{
get { return _fillColor; }
set { _fillColor = value; }
}
public PointF StartPoint
{
get { return _startPoint; }
set { _startPoint = value; }
}
public string Text
{
get { return _text; }
set
{
_text = value;
_length = _text.Length;
}
}
public RectangleF Rectangle
{
get { return _rectangle; }
set { _rectangle = value; }
}
}
}