using System; using System.Drawing; namespace OTSIncAReportGraph { /// /// 基本线类 /// public class DisplaySegment : ICloneable { private RectangleF m_rect; private Color m_color; /// /// 克隆基本线 /// /// public object Clone() { var newSeg= new DisplaySegment(); newSeg.m_rect = this.m_rect; newSeg.Color = this.Color; return newSeg; } public DisplaySegment() { } /// /// 画面的大小 /// public RectangleF GetShowRect() { return m_rect; } /// /// 画面的大小 /// public void SetShowRect(RectangleF value) { m_rect = value; } /// /// 线的颜色 /// public Color Color { get { return m_color; } set { m_color = value; } } } }