Aspose::Cells::Drawing::Shape::SetAlternativeText method

Shape::SetAlternativeText(const U16String&) method

Returns or sets the descriptive (alternative) text string of the Shape object.

void Aspose::Cells::Drawing::Shape::SetAlternativeText(const U16String &value)

Examples

U16String txt = u"a rectangle";
if (shape.GetAlternativeText() == u"rectangle")
{
    shape.SetAlternativeText(txt);
}

See Also

Shape::SetAlternativeText(const char16_t*) method

Returns or sets the descriptive (alternative) text string of the Shape object.

void Aspose::Cells::Drawing::Shape::SetAlternativeText(const char16_t *value)

Examples

if (shape.GetAlternativeText() == u"rectangle")
{
    shape.SetAlternativeText(u"a rectangle");
}

See Also