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