[]
Represents a collection of all the PivotTable objects on the specified worksheet.
public interface IPivotTables : IEnumerable<IPivotTable>, IEnumerable
Returns the number of objects in the collection (ead-only).
int Count { get; }
Returns a single object from a collection.
IPivotTable this[int index] { get; }
index
intThe index number for the object.
Returns a single object from a collection.
IPivotTable this[string name] { get; }
name
stringThe name for the object.
Adds a new PivotTable report.
IPivotTable Add(IPivotCache PivotCache, IRange TableDestination, string TableName = null)
PivotCache
IPivotCacheThe PivotTable cache on which the new PivotTable report is based. The cache provides data for the report.
TableDestination
IRangeThe cell in the upper-left corner of the PivotTable report's destination range (the range on the worksheet where the resulting report will be placed). You must specify a destination range on the worksheet that contains the PivotTables object specified by expression.
TableName
stringThe name of the new PivotTable report.
PivotTable object.