Share via


Window Object Members

Word Developer Reference

Represents a window. Many document characteristics, such as scroll bars and rulers, are actually properties of the window.

Methods

  Name Description
Bb258015.methods(en-us,office.12).gif Activate Activates the specified window.
Bb258015.methods(en-us,office.12).gif Close Closes the specified window.
Bb258015.methods(en-us,office.12).gif GetPoint Returns the screen coordinates of the specified range or shape.
Bb258015.methods(en-us,office.12).gif LargeScroll Scrolls a window or pane by the specified number of screens.
Bb258015.methods(en-us,office.12).gif NewWindow Opens a new window with the same document as the specified window. Returns a Window object.
Bb258015.methods(en-us,office.12).gif PageScroll Scrolls through the specified pane or window page by page.
Bb258015.methods(en-us,office.12).gif PrintOut Prints all or part of the document displayed in the specified window.
Bb258015.methods(en-us,office.12).gif RangeFromPoint Returns the Range or Shape object that is located at the point specified by the screen position coordinate pair.
Bb258015.methods(en-us,office.12).gif ScrollIntoView Scrolls through the document window so the specified range or shape is displayed in the document window.
Bb258015.methods(en-us,office.12).gif SetFocus Sets the focus of the specified document window to the body of an e-mail message.
Bb258015.methods(en-us,office.12).gif SmallScroll Scrolls a window or pane by the specified number of lines.
Bb258015.methods(en-us,office.12).gif ToggleRibbon Shows or hides the ribbon.
Bb258015.methods(en-us,office.12).gif ToggleShowAllReviewers Shows or hides all comments in a document that contains comments and tracked changes.

Properties

  Name Description
Bb258015.properties(en-us,office.12).gif Active True if the specified window is active. Read-only Boolean.
Bb258015.properties(en-us,office.12).gif ActivePane Returns a Pane object that represents the active pane for the specified window. Read-only.
Bb258015.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft OfficeWord application.
Bb258015.properties(en-us,office.12).gif Caption Returns or sets the caption text for the window that is displayed in the title bar of the document or application window. Read/write String.
Bb258015.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb258015.properties(en-us,office.12).gif DisplayHorizontalScrollBar True if a horizontal scroll bar is displayed for the specified window. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DisplayLeftScrollBar True if the vertical scroll bar appears on the left side of the document window. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DisplayRightRuler True if the vertical ruler appears on the right side of the document window in print layout view. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DisplayRulers True if rulers are displayed for the specified window or pane. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DisplayScreenTips True if comments, footnotes, endnotes, and hyperlinks are displayed as tips. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DisplayVerticalRuler True if a vertical ruler is displayed for the specified window or pane. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DisplayVerticalScrollBar True if a vertical scroll bar is displayed for the specified window. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif Document Returns a Document object associated with the specified pane, window, or selection. Read-only.
Bb258015.properties(en-us,office.12).gif DocumentMap True if the document map is visible. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif DocumentMapPercentWidth Returns or sets the width of the document map as a percentage of the width of the specified window. Read/write Long.
Bb258015.properties(en-us,office.12).gif EnvelopeVisible True if the e-mail message header is visible in the document window. The default value is False. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif Height Returns or sets the height of the window. Read/write Long.
Bb258015.properties(en-us,office.12).gif HorizontalPercentScrolled Returns or sets the horizontal scroll position as a percentage of the document width. Read/write Long.
Bb258015.properties(en-us,office.12).gif IMEMode Returns or sets the default start-up mode for the Japanese Input Method Editor (IME). Read/write WdIMEMode.
Bb258015.properties(en-us,office.12).gif Index Returns a Long that represents the position of an item in a collection. Read-only.
Bb258015.properties(en-us,office.12).gif Left Returns or sets a Long that represents the horizontal position of the specified window, measured in points. Read/write.
Bb258015.properties(en-us,office.12).gif Next Returns the next document window in the collection of open document windows. Read-only.
Bb258015.properties(en-us,office.12).gif Panes Returns a Panes collection that represents all the window panes for the specified window.
Bb258015.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified Window object.
Bb258015.properties(en-us,office.12).gif Previous Returns the previous document window in the collection open document windows. Read-only.
Bb258015.properties(en-us,office.12).gif Selection Returns the Selection object that represents a selected range or the insertion point. Read-only.
Bb258015.properties(en-us,office.12).gif ShowSourceDocuments Returns or sets a WdShowSourceDocuments constant that represents how Microsoft Office Word displays source documents after a compare and merge process. Read/write.
Bb258015.properties(en-us,office.12).gif Split True if the window is split into multiple panes. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif SplitVertical Returns or sets the vertical split percentage for the specified window. Read/write Long.
Bb258015.properties(en-us,office.12).gif StyleAreaWidth Returns or sets the width of the style area in points. Read/write Single.
Bb258015.properties(en-us,office.12).gif Thumbnails Sets or returns a Boolean that represents whether thumbnail images of the pages in a document are displayed along the left side of the Microsoft Word document window.
Bb258015.properties(en-us,office.12).gif Top Returns or sets the vertical position of the specified document window, in points. Read/write Long.
Bb258015.properties(en-us,office.12).gif Type Returns the window type. Read-only WdWindowType.
Bb258015.properties(en-us,office.12).gif UsableHeight Returns the height (in points) of the active working area in the specified document window. Read-only Long.
Bb258015.properties(en-us,office.12).gif UsableWidth Returns the width (in points) of the active working area in the specified document window. Read-only Long.
Bb258015.properties(en-us,office.12).gif VerticalPercentScrolled Returns or sets the vertical scroll position as a percentage of the document length. Read/write Long.
Bb258015.properties(en-us,office.12).gif View Returns a View object that represents the view for the specified window or pane.
Bb258015.properties(en-us,office.12).gif Visible True if the specified object is visible. Read/write Boolean.
Bb258015.properties(en-us,office.12).gif Width Returns or sets the width of the specified document window, in points. Read/write Long.
Bb258015.properties(en-us,office.12).gif WindowNumber Returns the window number of the document displayed in the specified window. For example, if the caption of the window is "Sales.doc:2", this property returns the number 2. Read-only Long.
Bb258015.properties(en-us,office.12).gif WindowState Returns or sets the state of the specified document window or task window. Read/write WdWindowState.