private string getText(CellAttributes attributes)
{
var text = FuncHelper.ApplyFormula(attributes.BasicProperties.DisplayFormatFormula, attributes.RowData.Value);
if (!string.IsNullOrEmpty(TextPropertyName))
{
text = attributes.RowData.TableRowData.GetSafeStringValueOf(TextPropertyName);
}
attributes.RowData.FormattedValue = text;
return text;
}