共用方式為


DocumentWindow Members

Include Protected Members
Include Inherited Members

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

The DocumentWindow type exposes the following members.

Properties

  Name Description
Public property Active Returns whether the specified pane or window is active. Read-only.
Public property ActivePane Returns a Pane object that represents the active pane in the document window. Read-only.
Public property Application Returns an Application object that represents the creator of the specified object.
Public property BlackAndWhite Determines whether the document window display is black and white. Read/write.
Public property Caption Returns the text that appears in the title bar of the document window. Read-only.
Public property Height Returns or sets the height of the specified object, in points. Read/write.
Public property HWND Returns the document window handle.
Public property Left Returns or sets a single-precision floating-point number 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.
Public property Panes Returns a Panes collection that represents the panes in the document window. Read-only.
Public property Parent Returns the parent object for the specified object.
Public property Presentation Returns a Presentation object that represents the presentation in which the specified document window or slide show window was created. Read-only.
Public property Selection Returns a Selection object that represents the selection in the specified document window. Read-only.
Public property 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.
Public property 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.
Public property Top Returns or sets a single-precision floating-point number 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.
Public property View Returns a View object that represents the view in the specified document window. Read-only.
Public property ViewType Returns or sets the type of the view contained in the specified document window. Read/write.
Public property Width Returns or sets the width of the specified object, in points. Read/write.
Public property WindowState Returns or sets the state of the specified window. Read/write.

Top

Methods

  Name Description
Public method Activate Activates the specified object.
Public method Close Closes the specified document window.
Public method ExpandSection Expands the section in the current DocumentWindow.
Public method FitToPage Adjusts the size of the specified document window to accommodate the information that's currently displayed.
Public method IsSectionExpanded Indicates whether the selected section is expanded in the DocumentWindow.
Public method LargeScroll Scrolls through the specified document window by pages.
Public method 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.
Public method 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-precision floating-point number.
Public method 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-precision floating-point number.
Public method 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 a null reference (Nothing in Visual Basic).
Public method ScrollIntoView Scrolls the document window so that items within a specified rectangular area are displayed in the document window or pane.
Public method SmallScroll Scrolls through the specified document window by lines and columns.

Top

See Also

Reference

DocumentWindow Interface

Microsoft.Office.Interop.PowerPoint Namespace