public ICSharpCode.Reports.Core.Exporter.BaseExportColumn CreateExportColumn() { BaseStyleDecorator st = this.CreateItemStyle(); ExportContainer item = new ExportContainer(st); return(item); }
public IBaseExportColumn CreateExportColumn() { BaseStyleDecorator st = this.CreateItemStyle(); ExportContainer item = new ExportContainer(st); return(item); }
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); }
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); }
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); } }
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); }
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); }
public BaseExportColumn CreateExportColumn() { BaseStyleDecorator st = this.CreateItemStyle(); ExportImage item = new ExportImage(st); if (this.Image == null) { item.FileName = this.imageFileName; this.Image = this.LoadImage(); } item.Image = this.Image; item.ScaleImageToSize = this.scaleImageToSize; return(item); }
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); }