_Document.ActiveWindow Property

Returns a Window object that represents the active window.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property ActiveWindow As Window
    Get
'Usage
Dim instance As _Document
Dim value As Window

value = instance.ActiveWindow
Window ActiveWindow { get; }

Property Value

Type: Microsoft.Office.Interop.Word.Window

Remarks

The active window is the window with the focus.

If there are no windows open, an error occurs.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace