## Shape::GetTextHorizontalAlignment method


Gets and sets the text horizontal alignment type of the shape.

```cpp
TextAlignmentType Aspose::Cells::Drawing::Shape::GetTextHorizontalAlignment()
```


## Examples


```cpp
if (shape.GetTextHorizontalAlignment() == TextAlignmentType::Bottom)
    shape.SetTextHorizontalAlignment(TextAlignmentType::Center);
```

## See Also

* Enum [TextAlignmentType](../../../aspose.cells/textalignmenttype/)
* Class [Shape](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
