private BaseStyleDecorator CreateItemStyle () { BaseStyleDecorator style = new BaseStyleDecorator(); style.BackColor = this.BackColor; style.ForeColor = this.ForeColor; style.Location = this.Location; style.Size = this.Size; style.DrawBorder = this.DrawBorder; return style; }
protected BaseStyleDecorator CreateItemStyle () { BaseStyleDecorator style = new BaseStyleDecorator(); style.BackColor = this.BackColor; style.ForeColor = this.ForeColor; Rectangle rect = base.DrawingRectangle; style.Location = new Point(rect.Left,this.Location.Y); style.Size = this.Size; style.DrawBorder = this.DrawBorder; return style; }
public static void FillBackground (Graphics graphics,BaseStyleDecorator decorator) { if (decorator.BackColor != GlobalValues.DefaultBackColor) { RectangleShape backgroundShape = new RectangleShape(); backgroundShape.FillShape(graphics, new SolidFillPattern(decorator.BackColor), decorator.DisplayRectangle); } }
public static void DrawBorder (Graphics graphics,BaseStyleDecorator decorator) { if (decorator.DrawBorder) { if (decorator.FrameColor == Color.Empty) { decorator.FrameColor = decorator.ForeColor; } Border border = new Border(new BaseLine (decorator.FrameColor,System.Drawing.Drawing2D.DashStyle.Solid,1)); border.DrawBorder(graphics,decorator.DisplayRectangle); } }
private BaseStyleDecorator GetBaseStyleDecorator() { BaseStyleDecorator bsd = new BaseStyleDecorator(); bsd.DrawBorder = this.DrawBorder; bsd.BackColor = this.BackColor; bsd.ForeColor = this.ForeColor; bsd.FrameColor = this.FrameColor; bsd.Location = this.Location; bsd.Size = this.Size; bsd.DisplayRectangle = this.DisplayRectangle; return bsd; }
protected BaseStyleDecorator CreateItemStyle () { BaseStyleDecorator style = new BaseStyleDecorator(); style.BackColor = this.BackColor; style.ForeColor = this.ForeColor; style.FrameColor = this.FrameColor; /* if (this.Parent != null) { Rectangle rect = base.DrawingRectangle; style.Location = new Point(rect.Left,this.Location.Y); } else { style.Location = this.Location; } */ style.Location = this.Location; style.Size = this.Size; style.DrawBorder = this.DrawBorder; return style; }
public ExportImage (BaseStyleDecorator itemStyle):base(itemStyle,false) { }
System.Windows.Controls.Border CreateBorder( BaseStyleDecorator column,double thickness,double cornerRadius) { var border = new System.Windows.Controls.Border(); border.Padding = new Thickness(1); border.BorderThickness = new Thickness(thickness); border.CornerRadius = new CornerRadius(cornerRadius); border.BorderBrush = ConvertBrush(column.ForeColor); return border; }
public ExportImage(BaseStyleDecorator itemStyle) : base(itemStyle, false) { }
public ExportText (BaseStyleDecorator itemStyle,bool isContainer):base(itemStyle,isContainer) { }
// public ExportText():base() // { // } public ExportText(BaseStyleDecorator itemStyle, bool isContainer) : base(itemStyle, isContainer) { }
public ExportText (BaseStyleDecorator itemStyle):base(itemStyle) { }
public ExportContainer(BaseStyleDecorator itemStyle) : base(itemStyle, true) { }
public ExportContainer(BaseStyleDecorator itemStyle) : base(itemStyle) { }
public ExportText(BaseStyleDecorator itemStyle) : base(itemStyle) { }