Aspose::Cells::Drawing::Shape::SetTextHorizontalAlignment method

Shape::SetTextHorizontalAlignment method

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

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

Examples

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

See Also