## Shape::SetTextHorizontalAlignment method


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

```cpp
void Aspose::Cells::Drawing::Shape::SetTextHorizontalAlignment(TextAlignmentType value)
```


## Examples


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

## See Also

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