Edit

Share via


ApplicationEvents Interface

Definition

A collection of event objects representing InfoPath application events.

public interface class ApplicationEvents : Microsoft::Office::Interop::InfoPath::SemiTrust::ApplicationEventsEmpty
[System.Runtime.InteropServices.Guid("096cd784-0786-11d1-95fa-0080c78ee3bb")]
public interface ApplicationEvents : Microsoft.Office.Interop.InfoPath.SemiTrust.ApplicationEventsEmpty
type ApplicationEvents = interface
    interface ApplicationEventsEmpty
Public Interface ApplicationEvents
Implements ApplicationEventsEmpty
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, seeMicrosoft.Office.Interop.InfoPath.SemiTrust._ApplicationEvents.

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

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

Applies to