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

RenderingCell() public method

Custom cell's content template as a PdfPCell
public RenderingCell ( CellAttributes attributes ) : PdfPCell
attributes CellAttributes
return PdfPCell
        public PdfPCell RenderingCell(CellAttributes attributes)
        {
            if (ShowPercentText)
            {
                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();

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