Class SlideShowWindow (PowerPoint VBA)

The class SlideShowWindow represents a window in which a slide show runs.

To use a SlideShowWindow class variable it first needs to be instantiated, for example

Dim ssw as SlideShowWindow
Set ssw = SlideShowWindows(Index:=1)

The following procedures can be used to set variables of type SlideShowWindow: Presentation.SlideShowWindow, SlideShowSettings.Run and SlideShowWindows.Item.

Activate

Activates the specified object.

SlideShowWindows(1).Activate

Active

Returns whether the specified pane or window is active.

The value returned by the Active property can be one of these MsoTriState constants.

Dim mtsActive As Office.MsoTriState
mtsActive = SlideShowWindows(1).Active

Height

Returns or sets the height of the specified object, in points.

The Height property of a Shape object returns or sets the height of the forward-facing surface of the specified shape. This measurement doesn't include shadows or 3D effects.

SlideShowWindows(1).Height = 200

IsFullScreen

Returns whether the specified slide show window occupies the entire screen.

The value of the IsFullScreen property can be one of these MsoTriState constants.

Dim mtsIsFullScreen As Office.MsoTriState
mtsIsFullScreen = SlideShowWindows(1).IsFullScreen

Left

Returns or sets a Single that represents the distance in points from the left edge of the document, application, and slide show windows to the left edge of the application window's client area. Setting this property to a very large positive or negative value may position the window completely off the desktop.

SlideShowWindows(1).Left =

Presentation

Returns a Presentation object that represents the presentation in which the specified document window or slide show window was created.

If the slide that's currently displayed in document window one is from an embedded presentation, Windows(1).View.Slide.Parent returns the embedded presentation, and Windows(1).Presentation returns the presentation in which document window one was created. If the slide that's currently displayed in slide show window one is from an embedded presentation, SlideShowWindows(1).View.Slide.Parent returns the embedded presentation, and SlideShowWindows(1).Presentation returns the presentation in which the slide show was started.

Dim prsPresentation As Presentation
Set prsPresentation = SlideShowWindows(1).Presentation

SlideNavigation

Returns a SlideNavigation object that represents the slide navigation screen in slide show view. Read-only

Dim snnSlideNavigation As SlideNavigation
Set snnSlideNavigation = SlideShowWindows(1).SlideNavigation

Top

Returns or sets a Single that represents the distance in points from the top edge of the document, application, and slide show window to the top edge of the application window's client area.

Setting this property to a very large positive or negative value may position the window completely off the desktop.

SlideShowWindows(1).Top = 20

View

Returns a SlideShowView object.

Dim ssvView As SlideShowView
Set ssvView = SlideShowWindows(1).View

Width

Returns or sets the width of the specified object, in points.

SlideShowWindows(1).Width = 200