DocumentWindow Object

         Properties         Methods

Multiple objects
DocumentWindows collection (DocumentWindow object)
Panes collection (Pane object)
Presentation object
Selection object
View object

Represents a document window. The DocumentWindow object is a member of the DocumentWindows collection. The DocumentWindows collection contains all the open document windows.

Using the DocumentWindow Object

Use Windows(index), where index is the document window index number, to return a single DocumentWindow object. The following example activates document window two.

Windows(2).Activate

The first member of the DocumentWindows collection, Windows(1), always returns the active document window. Alternatively, you can use the ActiveWindow property to return the active document window. The following example maximizes the active window.

ActiveWindow.WindowState = ppWindowMaximized

Use Panes(index), where index is the pane index number, to manipulate panes within normal, slide, outline, or notes page views of the document window. The following example activates pane three, which is the notes pane.

ActiveWindow.Panes(3).Activate

Use the ActivePane property to return the active pane within the document window. The following example checks to see if the active pane is the outline pane. If not, it activates the outline pane.

mypane = ActiveWindow.ActivePane.ViewType
    If mypane <> 1 Then
        ActiveWindow.Panes(1).Activate
    End If

Use the Presentation property to return the presentation that's currently running in the specified document window.

Use the Selection property to return the selection.

Use the SplitHorizontal property to return the percentage of the screen width that the outline pane occupies in normal view.

Use the SplitVertical property to return the percentage of the screen height that the slide pane occupies in normal view.

Use the View property to return the view in the specified document window.