## Slicer::GetCaption method


Returns or sets the caption of the specified slicer.

```cpp
U16String Aspose::Cells::Slicers::Slicer::GetCaption()
```


## Examples


```cpp
if (slicer.GetCaption().IsNull())
{
    slicer.SetCaption(u"slicer caption");
}
```

## See Also

* Class [U16String](../../../aspose.cells/u16string/)
* Class [Slicer](../)
* Namespace [Aspose::Cells::Slicers](../../)
* Library [Aspose.Cells for C++](../../../)
