PdfRpt.Core.Helper.TableCellDefinitionsExt.CreateSafePdfPCell C# (CSharp) Method

CreateSafePdfPCell() public static method

Create a PdfPCell based on the PdfCell Attributes.
public static CreateSafePdfPCell ( this pdfRptTableCellDefinition, IColumnItemsTemplate defaultItemTemplate ) : PdfPCell
pdfRptTableCellDefinition this PdfCell Attributes
defaultItemTemplate IColumnItemsTemplate Default ItemTemplate
return iTextSharp.text.pdf.PdfPCell
        public static PdfPCell CreateSafePdfPCell(this CellAttributes pdfRptTableCellDefinition, IColumnItemsTemplate defaultItemTemplate)
        {
            mapBasicProperties(pdfRptTableCellDefinition);
            runConditionalFormatFormula(pdfRptTableCellDefinition);

            var pdfPCell = runOnItemsTemplate(pdfRptTableCellDefinition, defaultItemTemplate);
            pdfPCell.ApplyStyles(pdfRptTableCellDefinition);
            return pdfPCell;
        }