---
title: "Aspose::Cells::Slicers::Slicer::GetLockedPosition method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.slicers/slicer/getlockedposition/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Slicers::Slicer::GetLockedPosition method. Indicates whether the specified slicer can be moved or resized by using the user interface in C++."
---

## Slicer::GetLockedPosition method


Indicates whether the specified slicer can be moved or resized by using the user interface.

```cpp
bool Aspose::Cells::Slicers::Slicer::GetLockedPosition()
```


## Examples


```cpp
if (slicer.GetLockedPosition() == true)
{
    slicer.SetLockedPosition(false);
}
```

## See Also

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