[]
Gets the number of PivotTable references associated with the slicer cache.
int Count { get; }
ReadOnly Property Count As Integer
IRange source = worksheet.Range["A1:B3"];
source.Value = new object[,] {
{"Product", "Amount"},
{"A", 10},
{"B", 20}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(source);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"], "PivotTable1");
ISlicerCache cache = workbook.SlicerCaches.Add(pivotTable, "Product");
int count = cache.PivotTables.Count;