如何将usercontrol添加到powerpoint活动幻灯片 [英] How to add usercontrol to powerpoint active slide

查看:119
本文介绍了如何将usercontrol添加到powerpoint活动幻灯片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我创建了一个VSTO加载项项目,在该项目中,我创建了一个带按钮的用户控件。

在加载项启动事件中,我创建了一个

自定义任务窗格,并在该任务窗格中添加了一个按钮。



在按钮单击事件中,我想处理代码以将用户控件(由我创建)插入PowerPoint活动幻灯片。



请帮助我。



谢谢。

Hi
I created an VSTO add-in project and in that project I created an user control with button.
In the Add-in start event I am creating an
custom task pane and to that task pane a button was added.

In the button click event, I want to handle code to insert the user control ( created by me) to the PowerPoint active slide.

Please help me on this.

Thank you.

推荐答案

这是一套PowerPoint(PP)事件:应用程序事件 [ ^ ]

你可以使用其中一个:

Here is a set of PowerPoint (PP) events: Application Events[^]
You can use one of that:
Public event    SlideShowBegin  'Occurs when you start a slide show. (Inherited from EApplication_Event.)
Public event    SlideShowEnd    'Occurs after a slide show ends, immediately after the last SlideShowNextSlide event occurs. (Inherited from EApplication_Event.)
Public event    SlideShowNextBuild  'Occurs upon mouse-click or timing animation, but before the animated object becomes visible. (Inherited from EApplication_Event.)
Public event    SlideShowNextClick  'Occurs on the next click of the slide. (Inherited from EApplication_Event.)
Public event    SlideShowNextSlide  'Occurs immediately before the transition to the next slide. For the first slide, occurs immediately after the SlideShowBegin event. (Inherited from EApplication_Event.)
Public event    SlideShowOnNext     'Occurs when the user clicks Next to move within the current slide. (Inherited from EApplication_Event.)
Public event    SlideShowOnPrevious     'Occurs when the user clicks Previous to move within the current slide. (Inherited from EApplication_Event.)


这篇关于如何将usercontrol添加到powerpoint活动幻灯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆