Method Add
| Improve this Doc View SourceAdd(Func<T>, Action<T>)
Adds a new column into this column list.
Declaration
public T Add(Func<T> createColumn, Action<T> initializer = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<T> | createColumn | The delegate to create the column. |
System.Action<T> | initializer | The optional initializer. |
Returns
Type | Description |
---|---|
T | The newly added column. |
Add<TColumn>(Action<TColumn>)
Add a new column into this column list.
Declaration
public TColumn Add<TColumn>(Action<TColumn> initializer = null)
where TColumn : T, new()
Parameters
Type | Name | Description |
---|---|---|
System.Action<TColumn> | initializer | The column initializer. |
Returns
Type | Description |
---|---|
TColumn | The new column added. |
Type Parameters
Name | Description |
---|---|
TColumn | The type of the column. |
Add<TColumn>(TColumn, Boolean, Action<TColumn>)
Add a new column into this column list, from existing column.
Declaration
public TColumn Add<TColumn>(TColumn column, bool inheritColumnKey = false, Action<TColumn> initializer = null)
where TColumn : T, new()
Parameters
Type | Name | Description |
---|---|---|
TColumn | column | The existing column. |
System.Boolean | inheritColumnKey | true to inherit ColumnId from existing column, otherwise false. |
System.Action<TColumn> | initializer | The column initializer. |
Returns
Type | Description |
---|---|
TColumn | The new column added. |
Type Parameters
Name | Description |
---|---|
TColumn | The type of the column. |
Add<TColumn>(Mounter<TColumn>, Boolean, Action<TColumn>)
Add a new column into this column list, from existing column property.
Declaration
public TColumn Add<TColumn>(Mounter<TColumn> fromMounter, bool inheritOriginalId = false, Action<TColumn> initializer = null)
where TColumn : T, new()
Parameters
Type | Name | Description |
---|---|---|
Mounter<TColumn> | fromMounter | The existing column mounter. |
System.Boolean | inheritOriginalId | true to inherit ColumnId from existing column property, otherwise false. |
System.Action<TColumn> | initializer | The column initializer. |
Returns
Type | Description |
---|---|
TColumn | The new column added. |
Type Parameters
Name | Description |
---|---|
TColumn | The type of the column. |