public override void Render(ReportPageEventArgs rpea) { if (rpea == null) { throw new ArgumentNullException("rpea"); } base.Render(rpea); Rectangle rectangle = base.DisplayRectangle; StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator); BaseLine line = new BaseLine(base.ForeColor, base.DashStyle, base.Thickness, LineCap.Round, LineCap.Round, DashCap.Round); using (Pen pen = line.CreatePen(line.Thickness)){ if (pen != null) { shape.CornerRadius = this.CornerRadius; GraphicsPath gfxPath = shape.CreatePath(rectangle); rpea.PrintPageEventArgs.Graphics.FillPath(new SolidBrush(BackColor), gfxPath);; rpea.PrintPageEventArgs.Graphics.DrawPath(pen, gfxPath); } } }
public override void Render(ReportPageEventArgs rpea) { if (rpea == null) { throw new ArgumentNullException("rpea"); } base.Render(rpea); StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator); StandardPrinter.DrawBorder(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator); string formated = StandardFormatter.FormatOutput(this.text, this.FormatString, this.DataType, String.Empty); Print(rpea, formated, base.DisplayRectangle); base.NotifyAfterPrint(rpea.LocationAfterDraw); }
public override void Render(ReportPageEventArgs rpea) { if (rpea == null) { throw new ArgumentNullException("rpea"); } Point point = this.Location; base.Render(rpea); StandardPrinter.AdjustBackColor(this); StandardPrinter.FillBackground(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator); StandardPrinter.DrawBorder(rpea.PrintPageEventArgs.Graphics, this.BaseStyleDecorator); rpea.LocationAfterDraw = new Point(rpea.LocationAfterDraw.X, this.Location.Y + this.Size.Height); this.Location = point; base.NotifyAfterPrint(rpea.LocationAfterDraw); }
protected void FillBackground(Graphics graphics) { StandardPrinter.FillBackground(graphics, this.BaseStyleDecorator); }