Share via


Window Members

Include Protected Members
Include Inherited Members

Represents a window.

The Window type exposes the following members.

Methods

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

Top

Properties

  Name Description
Public property Active True if the specified window is active.
Public property ActivePane Returns a Pane object that represents the active pane for the specified window.
Public property Application Returns a Application object that represents the Microsoft Word application.
Public property Caption Returns or sets the caption text for the specified document or application window.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property DisplayHorizontalScrollBar True if a horizontal scroll bar is displayed for the specified window.
Public property DisplayLeftScrollBar True if the vertical scroll bar appears on the left side of the document window.
Public property DisplayRightRuler True if the vertical ruler appears on the right side of the document window in print layout view.
Public property DisplayRulers True if rulers are displayed for the specified window or pane.
Public property DisplayScreenTips True if comments, footnotes, endnotes, and hyperlinks are displayed as tips. Text marked as having comments is highlighted.
Public property DisplayVerticalRuler True if a vertical ruler is displayed for the specified window or pane.
Public property DisplayVerticalScrollBar True if a vertical scroll bar is displayed for the specified window.
Public property Document Returns a Document object associated with the specified window.
Public property DocumentMap True if the document map is visible.
Public property DocumentMapPercentWidth Returns or sets the width of the document map as a percentage of the width of the specified window.
Public property EnvelopeVisible True if the e-mail message header is visible in the document window. The default value is False.
Public property Height Returns or sets the height of the window.
Public property HorizontalPercentScrolled Returns or sets the horizontal scroll position as a percentage of the document width.
Public property IMEMode Returns or sets the default start-up mode for the Japanese Input Method Editor (IME).
Public property Index Returns an Integer that represents the position of an item in a collection.
Public property Left Returns or sets an Integer that represents the horizontal position of the specified window, measured in points.
Public property Next Returns the next object in the collection.
Public property Panes Returns a Panes collection that represents all the window panes for the specified window.
Public property Parent Returns an object that represents the parent object of the specified object.
Public property Previous Returns the previous object in the collection.
Public property Selection Returns the Selection object that represents a selected range or the insertion point.
Public property ShowSourceDocuments Returns or sets a WdShowSourceDocuments constant that represents how Microsoft Office Word displays source documents after a compare and merge process. Read/write.
Public property Split True if the window is split into multiple panes.
Public property SplitVertical Returns or sets the vertical split percentage for the specified window.
Public property StyleAreaWidth Returns or sets the width of the style area in points.
Public property 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.
Public property Top Returns or sets the vertical position of the specified window, in points.
Public property Type Returns the window type.
Public property UsableHeight Returns the height (in points) of the active working area in the specified document window.
Public property UsableWidth Returns the width (in points) of the active working area in the specified document window.
Public property VerticalPercentScrolled Returns or sets the vertical scroll position as a percentage of the document length.
Public property View Returns a View object that represents the view for the specified window.
Public property Visible True if the specified object is visible.
Public property Width Returns or sets the width of the specified object, in points.
Public property 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.
Public property WindowState Returns or sets the state of the specified document window or task window.

Top

See Also

Reference

Window Interface

Microsoft.Office.Interop.Word Namespace