PdfRpt.FluentInterface.MainTableAdHocColumnsConventionsBuilder.AddTypeDisplayFormatFormula C# (CSharp) Method

AddTypeDisplayFormatFormula() public method

Here you can control how cells should be rendered based on their specific data types.
public AddTypeDisplayFormatFormula ( Type type, string>.Func func ) : void
type Type
func string>.Func
return void
        public void AddTypeDisplayFormatFormula(Type type, Func<object, string> func)
        {
            if (_builder.TypesDisplayFormatFormulas == null)
                _builder.TypesDisplayFormatFormulas = new Dictionary<Type, Func<object, string>>();

            _builder.TypesDisplayFormatFormulas.Add(type, func);
        }