## Comment::GetTextHorizontalAlignment method


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

```cpp
TextAlignmentType Aspose::Cells::Comment::GetTextHorizontalAlignment()
```


## Examples


```cpp
if (comment1.GetTextHorizontalAlignment() == TextAlignmentType::Fill)
{
    comment1.SetTextHorizontalAlignment(TextAlignmentType::Center);
}
```

## See Also

* Enum [TextAlignmentType](../../textalignmenttype/)
* Class [Comment](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
