[]
A collection of PivotItem objects that represent all the calculated items in the specified PivotTable report.
public interface ICalculatedItems : IEnumerable<IPivotItem>, IEnumerable
Returns the number of IPivotItem in the collection.
int Count { get; }
Get IPivotItem item by index.
IPivotItem this[int index] { get; }
index
intindex of calculated item
Get IPivotItem item by name.
IPivotItem this[string itemName] { get; }
itemName
stringname of calcluated item.
Creates a new calculated item. Returns a PivotItem object.
IPivotItem Add(string name, string formula)
name
stringThe name of the calculated item.
formula
stringThe formula for the calculated item.
Remove calculated item.
void Remove(string itemName)
itemName
stringname of calculated item.