ApplicationEvents Interface

Definition

A collection of event objects representing InfoPath application events.

public interface class ApplicationEvents : Microsoft::Office::Interop::InfoPath::_ApplicationEvents_Event, Microsoft::Office::Interop::InfoPath::ApplicationEventsEmpty
[System.Runtime.InteropServices.Guid("096CD784-0786-11D1-95FA-0080C78EE3BB")]
public interface ApplicationEvents : Microsoft.Office.Interop.InfoPath._ApplicationEvents_Event, Microsoft.Office.Interop.InfoPath.ApplicationEventsEmpty
type ApplicationEvents = interface
    interface ApplicationEventsEmpty
    interface _ApplicationEvents_Event
Public Interface ApplicationEvents
Implements _ApplicationEvents_Event, ApplicationEventsEmpty
Derived
Attributes
Implements

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:

NewXDocument EventOccurs when a new form is created.
Quit EventOccurs when the user quits InfoPath.
WindowActivate EventOccurs when any document window is activated.
WindowDeactivate EventOccurs when any document window is deactivated.
WindowSize EventOccurs when any document window is resized or moved.
XDocumentBeforeClose EventOccurs immediately before any open document closes.
XDocumentBeforePrint EventOccurs immediately before any open document is printed.
XDocumentBeforeSave EventOccurs immediately before any open document is saved.
XDocumentChange EventOccurs when a new form is created, when an existing form is opened, or when another form is made the active form.
XDocumentOpen EventOccurs 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.

Methods

add_NewXDocument(_ApplicationEvents_NewXDocumentEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_Quit(_ApplicationEvents_QuitEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_WindowActivate(_ApplicationEvents_WindowActivateEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_WindowDeactivate(_ApplicationEvents_WindowDeactivateEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_WindowSize(_ApplicationEvents_WindowSizeEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_XDocumentBeforeClose(_ApplicationEvents_XDocumentBeforeCloseEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_XDocumentBeforePrint(_ApplicationEvents_XDocumentBeforePrintEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_XDocumentBeforeSave(_ApplicationEvents_XDocumentBeforeSaveEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_XDocumentChange(_ApplicationEvents_XDocumentChangeEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
add_XDocumentOpen(_ApplicationEvents_XDocumentOpenEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_NewXDocument(_ApplicationEvents_NewXDocumentEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_Quit(_ApplicationEvents_QuitEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_WindowActivate(_ApplicationEvents_WindowActivateEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_WindowDeactivate(_ApplicationEvents_WindowDeactivateEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_WindowSize(_ApplicationEvents_WindowSizeEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_XDocumentBeforeClose(_ApplicationEvents_XDocumentBeforeCloseEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_XDocumentBeforePrint(_ApplicationEvents_XDocumentBeforePrintEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_XDocumentBeforeSave(_ApplicationEvents_XDocumentBeforeSaveEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_XDocumentChange(_ApplicationEvents_XDocumentChangeEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)
remove_XDocumentOpen(_ApplicationEvents_XDocumentOpenEventHandler)

This member is reserved for internal use and is not intended to be used directly from your code.

(Inherited from _ApplicationEvents_Event)

Events

NewXDocument

Occurs when a new form is created.

(Inherited from _ApplicationEvents_Event)
Quit

Occurs when the user quits InfoPath.

(Inherited from _ApplicationEvents_Event)
WindowActivate

Occurs when any document window is activated.

(Inherited from _ApplicationEvents_Event)
WindowDeactivate

Occurs when any document window is deactivated.

(Inherited from _ApplicationEvents_Event)
WindowSize

Occurs when any document window is resized or moved.

(Inherited from _ApplicationEvents_Event)
XDocumentBeforeClose

Occurs immediately before any open document closes.

(Inherited from _ApplicationEvents_Event)
XDocumentBeforePrint

Occurs immediately before any open document is printed.

(Inherited from _ApplicationEvents_Event)
XDocumentBeforeSave

Occurs immediately before any open document is saved.

(Inherited from _ApplicationEvents_Event)
XDocumentChange

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

(Inherited from _ApplicationEvents_Event)
XDocumentOpen

Occurs when a document is opened.

(Inherited from _ApplicationEvents_Event)

Applies to