ApplicationEvents4_WindowActivateEventHandler Delegate 

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

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Sub Sub1(Doc As Document, _
    Wn As Window)
End Sub
Dim applicationEvents4_WindowActivateEventHandler1 As New ApplicationEvents4_WindowActivateEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub ApplicationEvents4_WindowActivateEventHandler( _
    <InAttribute()> ByVal Doc As Document, _
    <InAttribute()> ByVal Wn As Window _
)
public delegate void ApplicationEvents4_WindowActivateEventHandler(
    [In] Document Doc, 
    [In] Window Wn
);
public delegate Void ApplicationEvents4_WindowActivateEventHandler(
    Document^ Doc, 
    Window^ Wn
);
public delegate void ApplicationEvents4_WindowActivateEventHandler(
    /*in*/Document Doc, 
    /*in*/Window Wn
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Doc
    The document displayed in the activated window.
  • Wn
    The window that's being activated.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace