ApplicationEvents4_Event Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Events interface for WordApplication object events.This is a .NET interface created when processing a COM coclass that is required by managed code for interoperability with the corresponding COM object. This interface implements all events of earlier interfaces and any additional new events. Use this interface only when the event you want to use shares the same name as a method of the COM object; in this case, cast to this interface to connect to the event, and cast to the primary interface to call the method. Otherwise, use the .NET interface that is derived from the COM coclass to access methods, properties, and events of the COM object.
public interface class ApplicationEvents4_Event
[System.Runtime.InteropServices.ComVisible(false)]
public interface ApplicationEvents4_Event
type ApplicationEvents4_Event = interface
Public Interface ApplicationEvents4_Event
- Derived
- Attributes
Methods
Events
DocumentBeforeClose |
Occurs immediately before any open document closes. |
DocumentBeforePrint |
Occurs before any open document is printed. |
DocumentBeforeSave |
Occurs before any open document is saved. |
DocumentChange |
Occurs when a new document is created, when an existing document is opened, or when another document is made the active document. |
DocumentOpen |
Occurs when a document is opened. |
DocumentSync |
Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server. |
EPostageInsert |
Occurs when a user inserts electronic postage into a document. |
EPostageInsertEx |
Occurs when a user inserts electronic postage into a document. |
EPostagePropertyDialog |
Occurs when a user clicks the E-postage Properties (Labels and Envelopes dialog box) button or Print Electronic Postage toolbar button. |
MailMergeAfterMerge |
Occurs after all records in a mail merge have merged successfully. |
MailMergeAfterRecordMerge |
Occurs after each record in the data source successfully merges in a mail merge. |
MailMergeBeforeMerge |
Occurs when a merge is executed before any records merge. |
MailMergeBeforeRecordMerge |
Occurs as a merge is executed for the individual records in a merge. |
MailMergeDataSourceLoad |
Occurs when the data source is loaded for a mail merge. |
MailMergeDataSourceValidate |
Occurs when a user performs address verification by clicking Validate in the Mail Merge Recipients dialog box. |
MailMergeDataSourceValidate2 |
Occurs when a user validates mail merge recipients by clicking the Validate addresses link button in the Mail Merge Recipients dialog box. |
MailMergeWizardSendToCustom |
Occurs when the custom button is clicked on step six of the Mail Merge Wizard. |
MailMergeWizardStateChange |
Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard. |
NewDocument |
Occurs when a new document is created. |
ProtectedViewWindowActivate |
Occurs when any protected view window is activated. |
ProtectedViewWindowBeforeClose |
Occurs immediately before a protected view window or a document in a protected view window closes. |
ProtectedViewWindowBeforeEdit |
Occurs immediately before editing is enabled on the document in the specified protected view window. |
ProtectedViewWindowDeactivate |
Occurs when a protected view window is deactivated. |
ProtectedViewWindowOpen |
Occurs when a protected view window is opened. |
ProtectedViewWindowSize |
Occurs when a protected view window is moved or resized. |
Quit |
Occurs when the user quits Word. |
Startup |
Reserved for internal use. |
WindowActivate |
Occurs when any document window is activated. |
WindowBeforeDoubleClick |
Occurs when the editing area of a document window is double-clicked, before the default double-click action. |
WindowBeforeRightClick |
Occurs when the editing area of a document window is right-clicked, before the default right-click action. |
WindowDeactivate |
Occurs when any document window is deactivated. |
WindowSelectionChange |
Occurs when the selection changes in the active document window. |
WindowSize |
Occurs when the application window is resized or moved. |
XMLSelectionChange |
Occurs when the parent XML node of the current selection changes. |
XMLValidationError |
Occurs when there is a validation error in the document. |