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
)
Function Add (
field As IPivotField,
name As String,
subtotal As SubtotalTypes
) As IPivotDataField
IPivotDataField^ Add(
IPivotField^ field,
String^ name,
SubtotalTypes subtotal
)
abstract Add :
field : IPivotField *
name : string *
subtotal : SubtotalTypes -> IPivotDataField
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