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

AddTypeColumnItemsTemplate() public method

Custom template of the in use property, controls how and what should be rendered in each cell of this column. It can be null. If you don't set it, new DisplayAsText() template will be used automatically. ColumnNamesItemsTemplates has higher priority.
public AddTypeColumnItemsTemplate ( Type type, IColumnItemsTemplate template ) : void
type Type
template IColumnItemsTemplate
return void
        public void AddTypeColumnItemsTemplate(Type type, IColumnItemsTemplate template)
        {
            if (_builder.TypesColumnItemsTemplates == null)
                _builder.TypesColumnItemsTemplates = new Dictionary<Type, IColumnItemsTemplate>();

            _builder.TypesColumnItemsTemplates.Add(type, template);
        }