예제 #1
0
        protected virtual void Decorate()
        {
            var shape = new RectangleShape();

            shape.DrawShape(this.PdfWriter.DirectContent, null, this.StyleDecorator, ConvertToPdfRectangle());
            this.DrawFrame();
        }
예제 #2
0
		protected virtual void Decorate ()
		{
			RectangleShape shape = new RectangleShape();
			shape.DrawShape(this.pdfWriter.DirectContent,
			            null,
			            this.styleDecorator,
			            ConvertToPdfRectangle());
			this.DrawFrame();
		}
예제 #3
0
        protected virtual void Decorate()
        {
            RectangleShape shape = new RectangleShape();

            iTextSharp.text.Rectangle rect = ConvertToPdfRectangle();
            shape.DrawShape(this.pdfWriter.DirectContent,
                            null,
                            this.styleDecorator, rect);
            this.DrawFrame();
        }
예제 #4
0
        public override void Draw(Graphics graphics)
        {
            if (graphics == null)
            {
                throw new ArgumentNullException("graphics");
            }

            Rectangle rect = new Rectangle(this.ClientRectangle.Left, this.ClientRectangle.Top,
                                           this.ClientRectangle.Right - 1,
                                           this.ClientRectangle.Bottom - 1);

            backgroundShape.FillShape(graphics,
                                      new SolidFillPattern(this.BackColor),
                                      rect);
            Border b = new Border(new BaseLine(this.ForeColor, System.Drawing.Drawing2D.DashStyle.Solid, 1));

            DrawFrame(graphics, b);

            shape.DrawShape(graphics,
                            this.Baseline(),
                            rect);
        }