Example #1
0
 /// <summary>
 /// Method to add a template column to the table's header
 /// </summary>
 /// <param name="newColumn"></param>
 public void addColumn(pdfTableColumn newColumn)
 {
     if (Type.GetType("sharpPDF.pdfTableColumn").IsInstanceOfType(newColumn)) {
         _cols.Add(newColumn);
     } else {
         throw new pdfIncorrectColumnException();
     }
 }
Example #2
0
 /// <summary>
 /// Method to add a template column to the table's header
 /// </summary>
 /// <param name="newColumn"></param>
 public void addColumn(pdfTableColumn newColumn)
 {
     if (Type.GetType("sharpPDF.pdfTableColumn").IsInstanceOfType(newColumn))
     {
         _cols.Add(newColumn);
     }
     else
     {
         throw new pdfIncorrectColumnException();
     }
 }