## Shape::GetAnchorType method


Gets and set the type of the shape anchor placeholder.

```cpp
ShapeAnchorType Aspose::Cells::Drawing::Shape::GetAnchorType()
```


## Examples


```cpp
if (shape.GetAnchorType() == ShapeAnchorType::OneCellAnchor)
    shape.SetAnchorType(ShapeAnchorType::TwoCellAnchor);
```

## See Also

* Enum [ShapeAnchorType](../../shapeanchortype/)
* Class [Shape](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
