/// <summary>
 /// Constructs a Paragraph with a certain Phrase.
 /// </summary>
 /// <param name="phrase">a Phrase</param>
 public Paragraph(Phrase phrase) : base(phrase)
 {
     if (phrase is Paragraph)
     {
         Paragraph p = (Paragraph)phrase;
         Alignment           = p.Alignment;
         IndentationLeft     = p.IndentationLeft;
         IndentationRight    = p.IndentationRight;
         FirstLineIndent     = p.FirstLineIndent;
         SpacingAfter        = p.SpacingAfter;
         SpacingBefore       = p.SpacingBefore;
         ExtraParagraphSpace = p.ExtraParagraphSpace;
         Role = p.role;
         id   = p.ID;
         if (p.accessibleAttributes != null)
         {
             accessibleAttributes = new Dictionary <PdfName, PdfObject>(p.accessibleAttributes);
         }
     }
 }
Exemplo n.º 2
0
 /**
  * A <CODE>Chunk</CODE> copy constructor.
  * @param ck the <CODE>Chunk</CODE> to be copied
  */
 public Chunk(Chunk ck)
 {
     if (ck.content != null)
     {
         content = new StringBuilder(ck.content.ToString());
     }
     if (ck.font != null)
     {
         font = new Font(ck.font);
     }
     if (ck.attributes != null)
     {
         attributes = new Dictionary <String, object>(ck.attributes);
     }
     role = ck.role;
     if (ck.accessibleAttributes != null)
     {
         accessibleAttributes = new Dictionary <PdfName, PdfObject>(ck.accessibleAttributes);
     }
     id = ck.ID;
 }