Show / Hide Table of Contents

Method Add

| Improve this Doc View Source

Add(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest