ApplicationEvents interface

A collection of event objects representing InfoPath application events.

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

Syntax

'Declaration
<GuidAttribute("096CD784-0786-11D1-95FA-0080C78EE3BB")> _
Public Interface ApplicationEvents _
    Inherits ApplicationEventsEmpty, _ApplicationEvents_Event
'Usage
Dim instance As ApplicationEvents
[GuidAttribute("096CD784-0786-11D1-95FA-0080C78EE3BB")]
public interface ApplicationEvents : ApplicationEventsEmpty, 
    _ApplicationEvents_Event

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, see_ApplicationEvents_Event.

The ApplicationEvents collection contains event objects used primarily with COM Add-ins to capture application-wide events. These events include:

Event

Description

NewXDocument Event

Occurs when a new form is created.

Quit Event

Occurs when the user quits InfoPath.

WindowActivate Event

Occurs when any document window is activated.

WindowDeactivate Event

Occurs when any document window is deactivated.

WindowSize Event

Occurs when any document window is resized or moved.

XDocumentBeforeClose Event

Occurs immediately before any open document closes.

XDocumentBeforePrint Event

Occurs immediately before any open document is printed.

XDocumentBeforeSave Event

Occurs immediately before any open document is saved.

XDocumentChange Event

Occurs when a new form is created, when an existing form is opened, or when another form is made the active form.

XDocumentOpen Event

Occurs when a document is opened.

Microsoft InfoPath supports COM Add-ins for extending the form editing user experience. COM Add-in support in InfoPath is available in the form editing environment. The form design environment is not able to be extended through the use of COM Add-ins. For more information about using the ApplicationEvents collection and creating a COM Add-in for InfoPath, see How to: Create a COM Add-in to Add Custom Features to InfoPath.

See also

Reference

ApplicationEvents members

Microsoft.Office.Interop.InfoPath namespace