Aspose::Cells::Drawing::Shape::SetMacroName method

Shape::SetMacroName(const U16String&) method

Gets and sets the name of macro.

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

Examples

U16String val = u"DoWork()";
//Sets the name of macro.
if (shape.GetMacroName().IsNull())
{
    shape.SetMacroName(val);
}

See Also

Shape::SetMacroName(const char16_t*) method

Gets and sets the name of macro.

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

Examples

//Sets the name of macro.
if (shape.GetMacroName().IsNull())
{
    shape.SetMacroName(u"DoWork()");
}

See Also