This documentation is archived and is not being maintained.

ApplicationEvents4_WindowDeactivateEventHandler Delegate 

A Delegate type used to add an event handler for the WindowDeactivate event. The WindowDeactivate event occurs when any document window is deactivated.

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

Sub Sub1(Doc As Document, _
	Wn As Window)
End Sub
Dim applicationEvents4_WindowDeactivateEventHandler1 As New ApplicationEvents4_WindowDeactivateEventHandler(AddressOf Sub1)

public delegate void ApplicationEvents4_WindowDeactivateEventHandler(
	[In] Document Doc, 
	[In] Window Wn
public delegate void ApplicationEvents4_WindowDeactivateEventHandler(
	/*in*/Document Doc, 
	/*in*/Window Wn
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.



The document displayed in the deactivated window.


The deactivated window.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms