如何将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.)