public DrawText(Point p, GraphicsPropertiesBase gp) { rectangle.X = p.X; rectangle.Y = p.Y; ApplyProperties(gp); Initialize(); }
/// <summary> /// 设置属性 /// </summary> /// <param name="graphicsProperties"></param> public void SetGraphicsProperties(GraphicsPropertiesBase graphicsProperties) { this.graphicsPropertiesBase = graphicsProperties; }
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; }
public override void ApplyProperties(GraphicsPropertiesBase properties) { base.ApplyProperties(properties); this.EndPoint = ((GraphicsPropertiesLine)properties).EndPoint; Invalidate(); }
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; }
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; } }
/// <summary> /// Apply properties for all selected objects /// </summary> public override void ApplyProperties( GraphicsPropertiesBase properties) { }