Inheritance: iTextSharp.text.HeaderFooter, IRtfBasicElement
 /**
  * Constructs a RtfHeaderFooterGroup by copying the content of the original
  * RtfHeaderFooterGroup
  *
  * @param doc The RtfDocument this RtfHeaderFooter belongs to
  * @param headerFooter The RtfHeaderFooterGroup to copy
  * @param type The type of RtfHeaderFooterGroup to create
  */
 public RtfHeaderFooterGroup(RtfDocument doc, RtfHeaderFooterGroup headerFooter, int type) : base(new Phrase(""), false)
 {
     this.document = doc;
     this.mode     = headerFooter.GetMode();
     this.type     = type;
     if (headerFooter.GetHeaderAll() != null)
     {
         this.headerAll = new RtfHeaderFooter(this.document, headerFooter.GetHeaderAll(), RtfHeaderFooter.DISPLAY_ALL_PAGES);
     }
     if (headerFooter.GetHeaderFirst() != null)
     {
         this.headerFirst = new RtfHeaderFooter(this.document, headerFooter.GetHeaderFirst(), RtfHeaderFooter.DISPLAY_FIRST_PAGE);
     }
     if (headerFooter.GetHeaderLeft() != null)
     {
         this.headerLeft = new RtfHeaderFooter(this.document, headerFooter.GetHeaderLeft(), RtfHeaderFooter.DISPLAY_LEFT_PAGES);
     }
     if (headerFooter.GetHeaderRight() != null)
     {
         this.headerRight = new RtfHeaderFooter(this.document, headerFooter.GetHeaderRight(), RtfHeaderFooter.DISPLAY_RIGHT_PAGES);
     }
     SetType(this.type);
 }
Exemplo n.º 2
0
 /**
 * Constructs a RtfHeaderFooterGroup by copying the content of the original
 * RtfHeaderFooterGroup
 *
 * @param doc The RtfDocument this RtfHeaderFooter belongs to
 * @param headerFooter The RtfHeaderFooterGroup to copy
 * @param type The type of RtfHeaderFooterGroup to create
 */
 public RtfHeaderFooterGroup(RtfDocument doc, RtfHeaderFooterGroup headerFooter, int type)
     : base(new Phrase(""), false)
 {
     this.document = doc;
     this.mode = headerFooter.GetMode();
     this.type = type;
     if (headerFooter.GetHeaderAll() != null) {
         this.headerAll = new RtfHeaderFooter(this.document, headerFooter.GetHeaderAll(), RtfHeaderFooter.DISPLAY_ALL_PAGES);
     }
     if (headerFooter.GetHeaderFirst() != null) {
         this.headerFirst = new RtfHeaderFooter(this.document, headerFooter.GetHeaderFirst(), RtfHeaderFooter.DISPLAY_FIRST_PAGE);
     }
     if (headerFooter.GetHeaderLeft() != null) {
         this.headerLeft = new RtfHeaderFooter(this.document, headerFooter.GetHeaderLeft(), RtfHeaderFooter.DISPLAY_LEFT_PAGES);
     }
     if (headerFooter.GetHeaderRight() != null) {
         this.headerRight = new RtfHeaderFooter(this.document, headerFooter.GetHeaderRight(), RtfHeaderFooter.DISPLAY_RIGHT_PAGES);
     }
     SetType(this.type);
 }