Click or drag to resize

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
)

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