Exemplo n.º 1
0
 /**
  * Makes a copy of an existing row.
  *
  * @param row
  */
 public PdfPRow(PdfPRow row)
 {
     mayNotBreak = row.mayNotBreak;
     maxHeight   = row.maxHeight;
     calculated  = row.calculated;
     cells       = new PdfPCell[row.cells.Length];
     for (int k = 0; k < cells.Length; ++k)
     {
         if (row.cells[k] != null)
         {
             if (row.cells[k] is PdfPHeaderCell)
             {
                 cells[k] = new PdfPHeaderCell((PdfPHeaderCell)row.cells[k]);
             }
             else
             {
                 cells[k] = new PdfPCell(row.cells[k]);
             }
         }
     }
     widths = new float[cells.Length];
     System.Array.Copy(row.widths, 0, widths, 0, cells.Length);
     InitExtraHeights();
     this.id   = row.ID;
     this.role = row.Role;
     if (row.accessibleAttributes != null)
     {
         this.accessibleAttributes = new Dictionary <PdfName, PdfObject>(row.GetAccessibleAttributes());
     }
 }
Exemplo n.º 2
0
 public PdfPRow(PdfPCell[] cells, PdfPRow source)
 {
     this.cells = cells;
     widths     = new float[cells.Length];
     InitExtraHeights();
     if (source != null)
     {
         this.id   = source.ID;
         this.role = source.Role;
         if (source.accessibleAttributes != null)
         {
             this.accessibleAttributes = new Dictionary <PdfName, PdfObject>(source.GetAccessibleAttributes());
         }
     }
 }
Exemplo n.º 3
0
 /**
 * Makes a copy of an existing row.
 * 
 * @param row
 */
 public PdfPRow(PdfPRow row) {
     mayNotBreak = row.mayNotBreak;
     maxHeight = row.maxHeight;
     calculated = row.calculated;
     cells = new PdfPCell[row.cells.Length];
     for (int k = 0; k < cells.Length; ++k) {
         if (row.cells[k] != null)
         {
             if (row.cells[k] is PdfPHeaderCell)
                 cells[k] = new PdfPHeaderCell((PdfPHeaderCell)row.cells[k]);
             else
                 cells[k] = new PdfPCell(row.cells[k]);
         }
     }
     widths = new float[cells.Length];
     System.Array.Copy(row.widths, 0, widths, 0, cells.Length);
     InitExtraHeights();
     this.id = row.ID;
     this.role = row.Role;
     if (row.accessibleAttributes != null)
         this.accessibleAttributes = new Dictionary<PdfName, PdfObject>(row.GetAccessibleAttributes());
 }
Exemplo n.º 4
0
 public PdfPRow(PdfPCell[] cells, PdfPRow source) {
     this.cells = cells;
     widths = new float[cells.Length];
     InitExtraHeights();
     if (source != null) {
         this.id = source.ID;
         this.role = source.Role;
         if (source.accessibleAttributes != null)
             this.accessibleAttributes = new Dictionary<PdfName, PdfObject>(source.GetAccessibleAttributes());
     }
 }