Document.ActiveWindow Property (2007 System)

Gets a Window that represents the active window.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property ActiveWindow As Window
'Usage
Dim instance As Document 
Dim value As Window 

value = instance.ActiveWindow
[BrowsableAttribute(false)]
public Window ActiveWindow { get; }
[BrowsableAttribute(false)]
public:
property Window^ ActiveWindow {
    Window^ get ();
}
public function get ActiveWindow () : Window

Property Value

Type: Window
A Window that represents the active window.

Remarks

The active window is the window that currently has focus.

If there are no windows open, an exception is thrown.

Examples

The following code example splits the active window.

This example is for a document-level customization.

Private Sub DocumentActiveWindow()
    Me.ActiveWindow.Split = True 
End Sub
private void DocumentActiveWindow()
{
    this.ActiveWindow.Split = true;
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace