[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ISlicerItems.Count

Count Property

Count

Gets the number of ISlicerItem objects in this collection.

This collection contains the slicer items associated with a ISlicerCache.

Declaration
int Count { get; }
ReadOnly Property Count As Integer
Examples
worksheet.Range["A1:A4"].Value = new object[,] {
    {"Category"},
    {"Fruit"},
    {"Vegetables"},
    {"Fruit"}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:A4"], true);
ISlicerItems slicerItems = workbook.SlicerCaches.Add(table, "Category", "categoryCache").SlicerItems;
int count = slicerItems.Count;