Click or drag to resize

PivotDataFields Add Method (IPivotField, String, SubtotalTypes)

Adds new data field to the collection.

Namespace: Spire.Xls.Core.Spreadsheet.PivotTables
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public IPivotDataField Add(
	IPivotField iField,
	string name,
	SubtotalTypes subtotal
)

Parameters

iField
Type: Spire.Xls.Core IPivotField
Parent field to use.
name
Type: System String
Name for the new data field.
subtotal
Type: Spire.Xls SubtotalTypes
Subtotal function for the new data field.

Return Value

Type: IPivotDataField
Newly added data field.

Implements

IPivotDataFields Add(IPivotField, String, SubtotalTypes)
See Also