Esempio n. 1
0
 public DrawText(Point p, GraphicsPropertiesBase gp)
 {
     rectangle.X = p.X;
     rectangle.Y = p.Y;
     ApplyProperties(gp);
     Initialize();
 }
Esempio n. 2
0
 /// <summary>
 /// 设置属性
 /// </summary>
 /// <param name="graphicsProperties"></param>
 public void SetGraphicsProperties(GraphicsPropertiesBase graphicsProperties)
 {
     this.graphicsPropertiesBase = graphicsProperties;
 }
Esempio n. 3
0
 public override void ApplyProperties(GraphicsPropertiesBase properties)
 {
     base.ApplyProperties(properties);
     this.textBackgroundColor = ((GraphicsPropertiesText)properties).BackGroundColor;
     this.Note = ((GraphicsPropertiesText)properties).Note;
     this.TextColor = ((GraphicsPropertiesText)properties).TextColor;
     this.TextFont = ((GraphicsPropertiesText)properties).TextFont;
     this.IsVerticalText = ((GraphicsPropertiesText)properties).IsVerticalText;
 }
Esempio n. 4
0
 public override void ApplyProperties(GraphicsPropertiesBase properties)
 {
     base.ApplyProperties(properties);
     this.EndPoint = ((GraphicsPropertiesLine)properties).EndPoint;
     Invalidate();
 }
Esempio n. 5
0
 public override void ApplyProperties(GraphicsPropertiesBase properties)
 {
     base.ApplyProperties(properties);
     this.rectangle.Height = ((GraphicsPropertiesRectangle)properties).Rectabgle.Height;
     this.rectangle.Width = ((GraphicsPropertiesRectangle)properties).Rectabgle.Width;
     this.FillColor = ((GraphicsPropertiesRectangle)properties).FillColor;
 }
Esempio n. 6
0
 public override void ApplyProperties(GraphicsPropertiesBase properties)
 {
     base.ApplyProperties(properties);
     this.rectangle.Height = ((GraphicsPropertiesImage)properties).Rectabgle.Height;
     this.rectangle.Width = ((GraphicsPropertiesImage)properties).Rectabgle.Width;
     this.FillColor = ((GraphicsPropertiesImage)properties).FillColor;
     if (((GraphicsPropertiesImage)properties).Bitmap != null)
     {
        this.image= this.TheImage = ((GraphicsPropertiesImage)properties).Bitmap;
     }
 }
Esempio n. 7
0
 /// <summary>
 /// Apply properties for all selected objects
 /// </summary>
 public override void ApplyProperties( GraphicsPropertiesBase properties)
 {
 }