---
title: "Aspose::Cells::Slicers::Slicer::SetStyleType method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.slicers/slicer/setstyletype/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Slicers::Slicer::SetStyleType method. Specify the type of Built-in slicer style. The default type is SlicerStyleLight1 in C++."
---

## Slicer::SetStyleType method


Specify the type of Built-in slicer style. The default type is SlicerStyleLight1.

```cpp
void Aspose::Cells::Slicers::Slicer::SetStyleType(SlicerStyleType value)
```


## Examples


```cpp
if(slicer.GetStyleType() != SlicerStyleType::SlicerStyleLight2)
{
    slicer.SetStyleType(SlicerStyleType::SlicerStyleLight2);
}
```

## See Also

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