Aspose::Cells::Comment::SetTextHorizontalAlignment method

Comment::SetTextHorizontalAlignment method

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

void Aspose::Cells::Comment::SetTextHorizontalAlignment(TextAlignmentType value)

Examples

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

See Also