protected virtual void Decorate()
        {
            var shape = new RectangleShape();

            shape.DrawShape(this.PdfWriter.DirectContent, null, this.StyleDecorator, ConvertToPdfRectangle());
            this.DrawFrame();
        }
Esempio n. 2
0
		protected virtual void Decorate ()
		{
			RectangleShape shape = new RectangleShape();
			shape.DrawShape(this.pdfWriter.DirectContent,
			            null,
			            this.styleDecorator,
			            ConvertToPdfRectangle());
			this.DrawFrame();
		}
Esempio n. 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();
        }
Esempio n. 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);
        }