Table of Contents

Method Column

Namespace
DocWright.Reporting.Data
Assembly
DocWright.Reporting.dll

Column<TValue>(string, Func<T, TValue>)

Declares a column.

public ReportObjectData<T> Column<TValue>(string name, Func<T, TValue> selector)

Parameters

name string

The column's name.

selector Func<T, TValue>

Reads the column's value from an object.

Returns

ReportObjectData<T>

This adapter.

Type Parameters

TValue

The type the selector returns, which becomes the column's type.

Exceptions

ArgumentNullException

An argument is null.

InvalidOperationException

The name is already declared.