---
title: "Aspose::Cells::Slicers::SlicerCache::GetSlicerCacheItems method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.slicers/slicercache/getslicercacheitems/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Slicers::SlicerCache::GetSlicerCacheItems method. Returns a SlicerCacheItem collection that contains the collection of all items in the slicer cache. Read-only in C++."
---

## SlicerCache::GetSlicerCacheItems method


Returns a [SlicerCacheItem](../../slicercacheitem/) collection that contains the collection of all items in the slicer cache. Read-only.

```cpp
SlicerCacheItemCollection Aspose::Cells::Slicers::SlicerCache::GetSlicerCacheItems()
```


## Examples


```cpp
//get SlicerCacheItem collection that contains the collection of all items in the slicer cache.
SlicerCacheItemCollection slicerCacheItems = slicerCache.GetSlicerCacheItems();
std::cout << slicerCacheItems.GetCount() <<std::endl;
```

## See Also

* Class [SlicerCacheItemCollection](../../slicercacheitemcollection/)
* Class [SlicerCache](../)
* Namespace [Aspose::Cells::Slicers](../../)
* Library [Aspose.Cells for C++](../../../)
