Share via


ApplicationEvents4_DocumentOpenEventHandler Delegate 

A Delegate type used to add an event handler for the DocumentOpen event. The DocumentOpen event occurs when a document is opened.

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

Usage

Sub Sub1(Doc As Document)
End Sub
Dim applicationEvents4_DocumentOpenEventHandler1 As New ApplicationEvents4_DocumentOpenEventHandler(AddressOf Sub1)

Syntax

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

Parameters

  • Doc
    The document that's being opened.

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