PdfRpt.ColumnsItemsTemplates.TextBlockField.RenderingCell C# (CSharp) Method

RenderingCell() public method

Custom cell's content template as a PdfPCell
public RenderingCell ( PdfRpt.Core.Contracts.CellAttributes attributes ) : PdfPCell
attributes PdfRpt.Core.Contracts.CellAttributes
return iTextSharp.text.pdf.PdfPCell
        public PdfPCell RenderingCell(CellAttributes attributes)
        {
            var data = FuncHelper.ApplyFormula(attributes.BasicProperties.DisplayFormatFormula, attributes.RowData.Value);
            attributes.RowData.FormattedValue = data;

            if (attributes.BasicProperties != null && attributes.BasicProperties.RunDirection == PdfRunDirection.RightToLeft)
                data = data.FixWeakCharacters();

            if (attributes.BasicProperties.PdfFont == null)
            {
                return new PdfPCell();
            }

            data = showEmptyCell(data);

            var phrase = attributes.BasicProperties.PdfFont.FontSelector.Process(data);
            return new PdfPCell(phrase);
        }