SetMacroHyperlinkClick()

HyperlinkManager::SetMacroHyperlinkClick(System::String) method

Set Macro hyperlink on a click.

System::SharedPtr<IHyperlink> Aspose::Slides::HyperlinkManager::SetMacroHyperlinkClick(System::String macroName) override

Arguments

ParameterTypeDescription
macroNameSystem::StringName of the macro

Return Value

Hyperlink object IHyperlink

Remarks

System::SharedPtr<Presentation> presentation = System::MakeObject<Presentation>();

System::SharedPtr<IAutoShape> shape = presentation->get_Slides()->idx_get(0)->get_Shapes()->AddAutoShape(Aspose::Slides::ShapeType::BlankButton, 20.0f, 20.0f, 80.0f, 30.0f);
shape->get_HyperlinkManager()->SetMacroHyperlinkClick(u"MacroName");

See Also