DocumentWindow object (PowerPoint)
Represents a document window. The DocumentWindow object is a member of the DocumentWindows collection. The DocumentWindows collection contains all the open document windows.
Remarks
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.
Example
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
Methods
Name |
---|
Activate |
Close |
ExpandSection |
FitToPage |
IsSectionExpanded |
LargeScroll |
NewWindow |
PointsToScreenPixelsX |
PointsToScreenPixelsY |
RangeFromPoint |
ScrollIntoView |
SmallScroll |
Properties
Name |
---|
Active |
ActivePane |
Application |
BlackAndWhite |
Caption |
Height |
Left |
Panes |
Parent |
Presentation |
Selection |
SplitHorizontal |
SplitVertical |
Top |
View |
ViewType |
Width |
WindowState |
See also
PowerPoint Object Model Reference
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.