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
)
 
Public Function Add ( 
	iField As IPivotField,
	name As String,
	subtotal As SubtotalTypes
) As IPivotDataField
 
public:
virtual IPivotDataField^ Add(
	IPivotField^ iField, 
	String^ name, 
	SubtotalTypes subtotal
) sealed
 
abstract Add : 
iField : IPivotField * 
name : string * 
subtotal : SubtotalTypes -> IPivotDataField 
override Add : 
iField : IPivotField * 
name : string * 
subtotal : SubtotalTypes -> IPivotDataField 
 
 
 
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