Table of contents
TOC
折叠目录
展开目录

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

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

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

语法Syntax

表达式SlideShowWindowexpression. SlideShowWindow

表达式_一个表示演示文稿对象的变量。_expression A variable that represents a Presentation object.

返回值Return Value

SlideShowWindowSlideShowWindow

注解Remarks

可以使用Me关键字和属性结合使用此属性返回幻灯片放映窗口中 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"的按钮的单击事件过程。如果您将这些按钮添加到幻灯片母版,并将这些事件过程添加到这些,根据母版 (并设为显示母版背景图形) 的所有幻灯片将都具有这些幻灯片放映时将处于活动状态的导航按钮。Me关键字返回表示幻灯片母版包含该控件的对象。如果该控件是在单独的幻灯片上,则该控件的事件过程中的Me关键字将返回一个Slide对象。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. The Me keyword returns the Master object that represents the slide master that contains the control. 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

概念Concepts

演示文稿对象Presentation Object

© 2018 Microsoft