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
fieldNamestringThe source column's header text, e.g.
"Amount".functionPivotFunctionThe aggregation applied to
fieldName's values.
Exceptions
- ArgumentNullException
fieldNameis null.- ArgumentException
fieldNameis blank.
Properties
FieldName
The source column's header text.
public string FieldName { get; }
Property Value
Function
The aggregation applied to FieldName's values.
public PivotFunction Function { get; }