Exemple #1
0
 private void AddText(IPdfStyling pdfStyling, IPdfTableCell pdfCell, Cell cell)
 {
     if (pdfCell is PdfTableCellWithSubtext)
     {
         AddTextWithSubtext(
             pdfStyling: pdfStyling,
             pdfCell: pdfCell as PdfTableCellWithSubtext,
             cell: cell);
     }
     else if (pdfCell is IPdfTableCellWithTextLines)
     {
         AddTextWithLines(
             pdfStyling: pdfStyling,
             pdfCell: pdfCell as IPdfTableCellWithTextLines,
             cell: cell);
     }
     else
     {
         cell.Add(pdfCell.Text.AsParagraph(pdfCell.IsBold));
     }
 }
Exemple #2
0
 /// <summary>
 /// Adds the specified cell.
 /// </summary>
 /// <param name="cell">The cell.</param>
 public void Add(IPdfTableCell cell)
 {
     this.Cells.Add(cell);
 }