Window Window Window Interface

Definition

Represents a window.

public interface class Window
[System.Runtime.InteropServices.Guid("00020962-0000-0000-C000-000000000046")]
public interface Window
Public Interface Window
Attributes

Remarks

Many document characteristics, such as scroll bars and rulers, are actually properties of the window. The Window object is a member of the Windows collection. The Windows collection for the Application object contains all the windows in the application, whereas the Windows collection for the Document object contains only the windows that display the specified document.

Use Windows(index), where index is the window name or the index number, to return a single Window object.

The index number is the number to the left of the window name on the Window menu.

Use the Add(Object) method or the NewWindow() method to add a new window to the Windows collection.

A colon (:) and a number appear in the window caption when more than one window is open for a document.

When you switch the view to print preview, a new window is created. This window is removed from the Windows collection when you close print preview.

Properties

Active Active Active

True if the specified window is active.

ActivePane ActivePane ActivePane

Returns a Pane object that represents the active pane for the specified window.

Application Application Application

Returns a Application object that represents the Microsoft Word application.

Caption Caption Caption

Returns or sets the caption text for the specified document or application window.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

DisplayHorizontalScrollBar DisplayHorizontalScrollBar DisplayHorizontalScrollBar

True if a horizontal scroll bar is displayed for the specified window.

DisplayLeftScrollBar DisplayLeftScrollBar DisplayLeftScrollBar

True if the vertical scroll bar appears on the left side of the document window.

DisplayRightRuler DisplayRightRuler DisplayRightRuler

True if the vertical ruler appears on the right side of the document window in print layout view.

DisplayRulers DisplayRulers DisplayRulers

True if rulers are displayed for the specified window or pane.

DisplayScreenTips DisplayScreenTips DisplayScreenTips

True if comments, footnotes, endnotes, and hyperlinks are displayed as tips. Text marked as having comments is highlighted.

DisplayVerticalRuler DisplayVerticalRuler DisplayVerticalRuler

True if a vertical ruler is displayed for the specified window or pane.

DisplayVerticalScrollBar DisplayVerticalScrollBar DisplayVerticalScrollBar

True if a vertical scroll bar is displayed for the specified window.

Document Document Document

Returns a Document object associated with the specified window.

DocumentMap DocumentMap DocumentMap

True if the document map is visible.

DocumentMapPercentWidth DocumentMapPercentWidth DocumentMapPercentWidth

Returns or sets the width of the document map as a percentage of the width of the specified window.

EnvelopeVisible EnvelopeVisible EnvelopeVisible

True if the e-mail message header is visible in the document window. The default value is False.

Height Height Height

Returns or sets the height of the window.

HorizontalPercentScrolled HorizontalPercentScrolled HorizontalPercentScrolled

Returns or sets the horizontal scroll position as a percentage of the document width.

Hwnd Hwnd Hwnd

Returns an Integer (int in C#) that indicates the window handle of the specified window. Read-only.

IMEMode IMEMode IMEMode

Returns or sets the default start-up mode for the Japanese Input Method Editor (IME).

Index Index Index

Returns an Integer that represents the position of an item in a collection.

Left Left Left

Returns or sets an Integer that represents the horizontal position of the specified window, measured in points.

Next Next Next

Returns the next object in the collection.

Panes Panes Panes

Returns a Panes collection that represents all the window panes for the specified window.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

Previous Previous Previous

Returns the previous object in the collection.

Selection Selection Selection

Returns the Selection object that represents a selected range or the insertion point.

ShowSourceDocuments ShowSourceDocuments ShowSourceDocuments

Returns or sets a WdShowSourceDocuments constant that represents how Microsoft Office Word displays source documents after a compare and merge process. Read/write.

Split Split Split

True if the window is split into multiple panes.

SplitVertical SplitVertical SplitVertical

Returns or sets the vertical split percentage for the specified window.

StyleAreaWidth StyleAreaWidth StyleAreaWidth

Returns or sets the width of the style area in points.

Thumbnails Thumbnails 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.

Top Top Top

Returns or sets the vertical position of the specified window, in points.

Type Type Type

Returns the window type.

UsableHeight UsableHeight UsableHeight

Returns the height (in points) of the active working area in the specified document window.

UsableWidth UsableWidth UsableWidth

Returns the width (in points) of the active working area in the specified document window.

VerticalPercentScrolled VerticalPercentScrolled VerticalPercentScrolled

Returns or sets the vertical scroll position as a percentage of the document length.

View View View

Returns a View object that represents the view for the specified window.

Visible Visible Visible

True if the specified object is visible.

Width Width Width

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

WindowNumber WindowNumber 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.

WindowState WindowState WindowState

Returns or sets the state of the specified document window or task window.

Methods

Activate() Activate() Activate()

Activates the specified object.

Close(Object, Object) Close(Object, Object) Close(Object, Object)

Closes the specified window.

GetPoint(Int32, Int32, Int32, Int32, Object) GetPoint(Int32, Int32, Int32, Int32, Object) GetPoint(Int32, Int32, Int32, Int32, Object)

Returns the screen coordinates of the specified range or shape.

LargeScroll(Object, Object, Object, Object) LargeScroll(Object, Object, Object, Object) LargeScroll(Object, Object, Object, Object)

Scrolls a window or pane by the specified number of screens.

NewWindow() NewWindow() NewWindow()

Opens a new window with the same document as the specified window.

PageScroll(Object, Object) PageScroll(Object, Object) PageScroll(Object, Object)

Scrolls through the specified pane or window page by page.

PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Prints all or part of the specified document.

PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOut2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

PrintOutOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOutOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) PrintOutOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

Reserved for internal use.

RangeFromPoint(Int32, Int32) RangeFromPoint(Int32, Int32) RangeFromPoint(Int32, Int32)

Returns the Range or Shape object that is located at the point specified by the screen position coordinate pair.

ScrollIntoView(Object, Object) ScrollIntoView(Object, Object) ScrollIntoView(Object, Object)

Scrolls through the document window so the specified range or shape is displayed in the document window.

SetFocus() SetFocus() SetFocus()

Sets the focus of the specified document window to the body of an e-mail message.

SmallScroll(Object, Object, Object, Object) SmallScroll(Object, Object, Object, Object) SmallScroll(Object, Object, Object, Object)

Scrolls a window or pane by the specified number of lines.

ToggleRibbon() ToggleRibbon() ToggleRibbon()

Shows or hides the ribbon.

ToggleShowAllReviewers() ToggleShowAllReviewers() ToggleShowAllReviewers()

This object, member, or enumeration is deprecated and is not intended to be used in your code.

Applies to