[]
Gets the number of IPivotTable objects in this collection.
Use this property to determine how many PivotTable reports are available on the worksheet.
int Count { get; }
ReadOnly Property Count As Integer
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Value"},
{"A", 100},
{"B", 200}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B3"]);
worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"], "PivotTable1");
int count = worksheet.PivotTables.Count;