PdfRpt.ColumnsItemsTemplates.XHtmlField.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 html = FuncHelper.ApplyFormula(attributes.BasicProperties.DisplayFormatFormula, attributes.RowData.Value);
            attributes.RowData.FormattedValue = html;
            var cell = new XmlWorkerHelper
            {
                Html = html,
                RunDirection = attributes.BasicProperties.RunDirection.Value,
                CssFilesPath = CssFilesPath,
                InlineCss = InlineCss,
                ImagesPath = ImagesPath,
                DefaultFont = attributes.BasicProperties.PdfFont.Fonts[0]
            }.RenderHtml();
            return cell;
        }