Aspose::Cells::Comment::SetAutoSize method

Comment::SetAutoSize method

Indicates if size of comment is adjusted automatically according to its content. Note: In some special cases (such as Mac environment), this setting may not take effect. If this setting does not take effect, please replace it with FitToTextSize().

void Aspose::Cells::Comment::SetAutoSize(bool value)

Examples

if (!comment1.GetAutoSize())
{
    //The size of the comment varies with the content
    comment1.SetAutoSize(true);
}

See Also