Aspose::Cells::Slicers::Slicer::SetAlternativeText method

Slicer::SetAlternativeText(const U16String&) method

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

void Aspose::Cells::Slicers::Slicer::SetAlternativeText(const U16String &value)

Examples

U16String val = u"AlternativeText test";
if (slicer.GetAlternativeText().IsNull())
{
    slicer.SetAlternativeText(val);
}

See Also

Slicer::SetAlternativeText(const char16_t*) method

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

void Aspose::Cells::Slicers::Slicer::SetAlternativeText(const char16_t *value)

Examples

if (slicer.GetAlternativeText().IsNull())
{
    slicer.SetAlternativeText(u"AlternativeText test");
}

See Also