Show / Hide Table of Contents

Method AddColumn

| Improve this Doc View Source

AddColumn<T>(Action<T>)

Adds a new column to this adhoc model, with optional column initializer.

Declaration
public T AddColumn<T>(Action<T> initializer = null)

    where T : Column, new()
Parameters
Type Name Description
System.Action<T> initializer

The column initializer.

Returns
Type Description
T

The new column added.

Type Parameters
Name Description
T

The type of the column.

| Improve this Doc View Source

AddColumn<T>(T, Boolean, Action<T>)

Adds a new column to this adhoc model, from existing column.

Declaration
public T AddColumn<T>(T column, bool inheritColumnKey = false, Action<T> initializer = null)

    where T : Column, new()
Parameters
Type Name Description
T column

The existing column.

System.Boolean inheritColumnKey

A value indicates whether the newly added column should inherit ColumnId from the existing column.

System.Action<T> initializer

The additional column initializer.

Returns
Type Description
T

The new column added.

Type Parameters
Name Description
T

The type of the column.

| Improve this Doc View Source

AddColumn<T>(Mounter<T>, Boolean, Action<T>)

Adds a new column to this adhoc model, from existing column property.

Declaration
public T AddColumn<T>(Mounter<T> mounter, bool inheritColumnKey = false, Action<T> initializer = null)

    where T : Column, new()
Parameters
Type Name Description
Mounter<T> mounter

The existing column mounter.

System.Boolean inheritColumnKey

A value indicates whether the newly added column should inherit ColumnId from the existing column property.

System.Action<T> initializer

The additional column initializer.

Returns
Type Description
T

The new column added.

Type Parameters
Name Description
T

The type of the column.

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