DocumentWindow Members (PowerPoint)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

Methods

Name

Description

Activate

Activates the specified object.

Close

Closes the specified document window.

ExpandSection

Expands the section in the current DocumentWindow.

FitToPage

Adjusts the size of the specified document window to accommodate the information that's currently displayed.

IsSectionExpanded

Indicates whether the selected section is expanded in the DocumentWindow.

LargeScroll

Scrolls through the specified document window by pages.

NewWindow

Opens a new window that contains the same document that is displayed in the specified window. Returns a DocumentWindow object that represents the new window.

PointsToScreenPixelsX

Converts a horizontal measurement from points to pixels. Used to return a horizontal screen location for a text frame or shape. Returns the converted measurement as a Single.

PointsToScreenPixelsY

Converts a vertical measurement from points to pixels. Used to return a vertical screen location for a text frame or shape. Returns the converted measurement as a Single.

RangeFromPoint

Returns the Shape object that is located at the point specified by the screen position coordinate pair. If no shape is located at the coordinate pair specified, then the method returns Nothing.

ScrollIntoView

Scrolls the document window so that items within a specified rectangular area are displayed in the document window or pane.

SmallScroll

Scrolls through the specified document window by lines and columns.

Properties

Name

Description

Active

Returns whether the specified pane or window is active. Read-only.

ActivePane

Returns a Pane object that represents the active pane in the document window. Read-only.

Application

Returns an Application object that represents the creator of the specified object.

BlackAndWhite

Determines whether the document window display is black and white. Read/write.

Caption

Returns the text that appears in the title bar of the document window. Read-only.

Height

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

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. Read/write.

Panes

Returns a Panes collection that represents the panes in the document window. Read-only.

Parent

Returns the parent object for the specified object.

Presentation

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

Selection

Returns a Selection object that represents the selection in the specified document window. Read-only.

SplitHorizontal

Returns or sets the percentage of the document window width that the outline pane occupies in normal view. Corresponds to the pane divider position between the slide and outline panes. Read/write.

SplitVertical

Returns or sets the percentage of the document window height that the slide pane occupies in normal view. Corresponds to the pane divider position between the slide and notes panes. Read/write.

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. Read/write.

View

Returns a View object that represents the view in the specified document window. Read-only.

ViewType

Returns or sets the type of the view contained in the specified document window. Read/write.

Width

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

WindowState

Returns or sets the state of the specified window. Read/write.