[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicerPivotTables.Count

Count Property

Count

Gets the number of PivotTable references associated with the slicer cache.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
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;