Esempio n. 1
0
        public override void WriteToPdf(PdfDocument doc)
        {
            // to do

            RectArea rect = new RectArea(PosX, PosY, Width, Height, false);
            rect.SetFillColor(0, 0, 0, 0);
            rect.SetStrokeColor(0, 0, 0, 250);
            rect.Stroked = true;
            rect.AddToDocument(doc);
        }
Esempio n. 2
0
        public void WriteToPdf(PdfDocument doc)
        {
            foreach (Element e in Elements)
                e.WriteToPdf(doc);

            if (doc.DEBUG)
            {
                RectArea r = new RectArea(PosX, PosY, Width, Height);
                r.Filled = false;
                r.Stroked = true;
                r.SetStrokeColor(0, 0, 0, 250);
                r.AddToDocument(doc);
            }
        }