Constructor XlsxPivotDataField
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
XlsxPivotDataField(string, XlsxPivotFunction, string?)
Creates a value field for DataFields: a field of the source summarized by a function, captioned as Excel captions it ("Sum of Units") unless a name is given.
public XlsxPivotDataField(string field, XlsxPivotFunction function = XlsxPivotFunction.Sum, string? name = null)
Parameters
fieldstringThe source field's name (its column heading).
functionXlsxPivotFunctionHow it is summarized; a sum by default.
namestringThe caption, or null for Excel's.
Exceptions
- ArgumentNullException
fieldis null.