Presentation.SlideShowWindow 属性 (PowerPoint)Presentation.SlideShowWindow Property (PowerPoint)

返回一个**SlideShowWindow** 对象,表示在运行指定的演示文稿的幻灯片放映窗口。Returns a SlideShowWindow object that represents the slide show window in which the specified presentation is running. 只读。Read-only.

语法Syntax

表达式expression. SlideShowWindow

_表达式_一个代表Presentation对象的变量。expression A variable that represents a Presentation object.

返回值Return value

SlideShowWindowSlideShowWindow

注解Remarks

您可以使用与Me关键字和Parent属性结合此属性返回顺序触发 ActiveX 控件事件,该幻灯片放映窗口中的示例所示。You can use this property in conjunction with the Me keyword and the Parent property to return the slide show window in which an ActiveX control event was fired, as shown in the example.

示例Example

下面的示例显示名为"cmdBack"和"cmdForward"的按钮的单击事件过程。The following example shows the Click event procedures for buttons named "cmdBack" and "cmdForward". 如果您将这些按钮添加到幻灯片母版,并将这些事件过程添加到这些,根据母版 (并设为显示母版背景图形) 的所有幻灯片将都具有这些幻灯片放映时将处于活动状态的导航按钮。If you add these buttons to the slide master and add these event procedures to them, all slides based on the master (and set to show master background graphics) will have these navigation buttons that will be active during a slide show. Me关键字返回代表包含该控件的幻灯片母版的Master对象。The Me keyword returns the Master object that represents the slide master that contains the control. 如果该控件是在单独的幻灯片上,则该控件的事件过程中的 Me 关键字将返回一个 Slide 对象。If the control were on an individual slide, the Me keyword in an event procedure for that control would return a Slide object.

Private Sub cmdBack_Click()

    Me.Parent.SlideShowWindow.View.Previous

End Sub



Private Sub cmdForward_Click()

    Me.Parent.SlideShowWindow.View.Next

End Sub

另请参阅See also

演示文稿对象Presentation Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.