Aspose::Cells::Drawing::Shape::GetTextHorizontalAlignment method

Shape::GetTextHorizontalAlignment method

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

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

Examples

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

See Also