Table of Contents

Class PivotDataField

Namespace
DocToolkit
Assembly
DocToolkit.Xlsx.dll

One aggregated value column in a pivot table's data area.

public sealed class PivotDataField
Inheritance
PivotDataField
Inherited Members

Constructors

PivotDataField(string, PivotFunction)

Creates a data field aggregating one source column.

public PivotDataField(string fieldName, PivotFunction function)

Parameters

fieldName string

The source column's header text, e.g. "Amount".

function PivotFunction

The aggregation applied to fieldName's values.

Exceptions

ArgumentNullException

fieldName is null.

ArgumentException

fieldName is blank.

Properties

FieldName

The source column's header text.

public string FieldName { get; }

Property Value

string

Function

The aggregation applied to FieldName's values.

public PivotFunction Function { get; }

Property Value

PivotFunction