简体   繁体   中英

Can I add a hyperlink to my shape to close the current powerpoint presentation in C#

I have added a shape to my powerpoint add in and I would like to add a hyperlink to this shape which means that the current presentation will close when the shape is clicked.

So far I have:

PowerPoint.Shape shape = //my shape;
shape.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Hyperlink = ??

taken from this link

shape.ActionSettings[PowerPoint.PpMouseActivation.ppMouseClick].Action = PowerPoint.PpActionType.ppActionEndShow; 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM