SetMacroHyperlinkClick

HyperlinkManager.SetMacroHyperlinkClick 方法

点击时设置宏超链接。

public IHyperlink SetMacroHyperlinkClick(string macroName)
参数类型描述
macroNameString宏的名称

返回值

超链接对象 IHyperlink

示例

[C#]
using (Presentation presentation = new Presentation())
{
    IAutoShape shape = presentation.Slides[0].Shapes.AddAutoShape(ShapeType.BlankButton, 20, 20, 80, 30);
    shape.HyperlinkManager.SetMacroHyperlinkClick("MacroName");
}

另见