Table of Contents

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

field string

The source field's name (its column heading).

function XlsxPivotFunction

How it is summarized; a sum by default.

name string

The caption, or null for Excel's.

Exceptions

ArgumentNullException

field is null.