[]
A collection of IPivotField objects that represents all the calculated fields in the specified PivotTable report.
public interface ICalculatedFields : IEnumerable<IPivotField>, IEnumerable
Returns the number of calculated fields.
int Count { get; }
Returns a single object from a collection.
IPivotField this[int index] { get; }
index
intThe index number for the object.
An IPivotField object contained by the collection.
Returns a single object from a collection.
IPivotField this[string fieldName] { get; }
fieldName
stringThe name for the object.
An IPivotField object contained by the collection.
Creates a new calculated field. Returns a IPivotField object.
IPivotField Add(string Name, string Formula)
Name
stringThe name of the field.
Formula
stringThe formula for the field.
An IPivotField that represents the new calculated field.
Remove the calculated fields by name.
void Remove(string fieldName)
fieldName
stringName of calculated field you want to remove