---
title: "Aspose::Cells::Slicers::SlicerCacheItem::SetSelected method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.slicers/slicercacheitem/setselected/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Slicers::SlicerCacheItem::SetSelected method. Specifies whether the SlicerCacheItem is selected or not in C++."
---

## SlicerCacheItem::SetSelected method


Specifies whether the [SlicerCacheItem](../) is selected or not.

```cpp
void Aspose::Cells::Slicers::SlicerCacheItem::SetSelected(bool value)
```

## Remarks


Please use  Slicer.SelectItems(string[], bool) method instead if you want to select item. Because this refresh operation causes poor performance due to full data reload every time selection changes. 
## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [SlicerCacheItem](../)
* Namespace [Aspose::Cells::Slicers](../../)
* Library [Aspose.Cells for C++](../../../)
