示例#1
0
        // methods to retrieve the membervariables

        /// <summary>
        /// Gets the Paragraph that can be used as header or footer.
        /// </summary>
        /// <returns>a Paragraph</returns>
        public Paragraph paragraph()
        {
            Paragraph paragraph = new Paragraph(before.Leading);

            paragraph.Add(before);
            if (numbered)
            {
                paragraph.addSpecial(new Chunk(pageN.ToString(), before.Font));
            }
            if (after != null)
            {
                paragraph.addSpecial(after);
            }
            paragraph.Alignment = alignment;
            return(paragraph);
        }