Click or drag to resize

IPivotDataFields Add Method

Adds new data field to the collection.

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

Parameters

field
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.
See Also