PivotCalculatedFieldsCollection
Add Method (String, String)
 | 
Adds a calculated field to the pivot table with the specified name and formula.
Namespace:
Spire.Xls.Core.Spreadsheet.PivotTables
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
 
public IPivotField Add(
	string name,
	string formula
)
 
Public Function Add ( 
	name As String,
	formula As String
) As IPivotField
 
public:
virtual IPivotField^ Add(
	String^ name, 
	String^ formula
) sealed
 
abstract Add : 
name : string * 
formula : string -> IPivotField 
override Add : 
name : string * 
formula : string -> IPivotField 
 
 
 
Parameters
- 
name
 
- 
Type:
System
String
The name of the calculated field.
 
- 
formula
 
- 
Type:
System
String
The formula for the calculated field.
 
Return Value
Type:
IPivotField
A new instance of the PivotField representing the added calculated field.
Implements
IPivotCalculatedFields
Add(String, String)
 
See Also