Edytuj

Udostępnij za pośrednictwem


ApplicationEvents4_Event Interface

Definition

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

add_DocumentBeforeClose(ApplicationEvents4_DocumentBeforeCloseEventHandler)
add_DocumentBeforePrint(ApplicationEvents4_DocumentBeforePrintEventHandler)
add_DocumentBeforeSave(ApplicationEvents4_DocumentBeforeSaveEventHandler)
add_DocumentChange(ApplicationEvents4_DocumentChangeEventHandler)
add_DocumentOpen(ApplicationEvents4_DocumentOpenEventHandler)
add_DocumentSync(ApplicationEvents4_DocumentSyncEventHandler)
add_EPostageInsert(ApplicationEvents4_EPostageInsertEventHandler)
add_EPostageInsertEx(ApplicationEvents4_EPostageInsertExEventHandler)
add_EPostagePropertyDialog(ApplicationEvents4_EPostagePropertyDialogEventHandler)
add_MailMergeAfterMerge(ApplicationEvents4_MailMergeAfterMergeEventHandler)
add_MailMergeAfterRecordMerge(ApplicationEvents4_MailMergeAfterRecordMergeEventHandler)
add_MailMergeBeforeMerge(ApplicationEvents4_MailMergeBeforeMergeEventHandler)
add_MailMergeBeforeRecordMerge(ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler)
add_MailMergeDataSourceLoad(ApplicationEvents4_MailMergeDataSourceLoadEventHandler)
add_MailMergeDataSourceValidate(ApplicationEvents4_MailMergeDataSourceValidateEventHandler)
add_MailMergeDataSourceValidate2(ApplicationEvents4_MailMergeDataSourceValidate2EventHandler)
add_MailMergeWizardSendToCustom(ApplicationEvents4_MailMergeWizardSendToCustomEventHandler)
add_MailMergeWizardStateChange(ApplicationEvents4_MailMergeWizardStateChangeEventHandler)
add_NewDocument(ApplicationEvents4_NewDocumentEventHandler)
add_ProtectedViewWindowActivate(ApplicationEvents4_ProtectedViewWindowActivateEventHandler)
add_ProtectedViewWindowBeforeClose(ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler)
add_ProtectedViewWindowBeforeEdit(ApplicationEvents4_ProtectedViewWindowBeforeEditEventHandler)
add_ProtectedViewWindowDeactivate(ApplicationEvents4_ProtectedViewWindowDeactivateEventHandler)
add_ProtectedViewWindowOpen(ApplicationEvents4_ProtectedViewWindowOpenEventHandler)
add_ProtectedViewWindowSize(ApplicationEvents4_ProtectedViewWindowSizeEventHandler)
add_Quit(ApplicationEvents4_QuitEventHandler)
add_Startup(ApplicationEvents4_StartupEventHandler)
add_WindowActivate(ApplicationEvents4_WindowActivateEventHandler)
add_WindowBeforeDoubleClick(ApplicationEvents4_WindowBeforeDoubleClickEventHandler)
add_WindowBeforeRightClick(ApplicationEvents4_WindowBeforeRightClickEventHandler)
add_WindowDeactivate(ApplicationEvents4_WindowDeactivateEventHandler)
add_WindowSelectionChange(ApplicationEvents4_WindowSelectionChangeEventHandler)
add_WindowSize(ApplicationEvents4_WindowSizeEventHandler)
add_XMLSelectionChange(ApplicationEvents4_XMLSelectionChangeEventHandler)
add_XMLValidationError(ApplicationEvents4_XMLValidationErrorEventHandler)
remove_DocumentBeforeClose(ApplicationEvents4_DocumentBeforeCloseEventHandler)
remove_DocumentBeforePrint(ApplicationEvents4_DocumentBeforePrintEventHandler)
remove_DocumentBeforeSave(ApplicationEvents4_DocumentBeforeSaveEventHandler)
remove_DocumentChange(ApplicationEvents4_DocumentChangeEventHandler)
remove_DocumentOpen(ApplicationEvents4_DocumentOpenEventHandler)
remove_DocumentSync(ApplicationEvents4_DocumentSyncEventHandler)
remove_EPostageInsert(ApplicationEvents4_EPostageInsertEventHandler)
remove_EPostageInsertEx(ApplicationEvents4_EPostageInsertExEventHandler)
remove_EPostagePropertyDialog(ApplicationEvents4_EPostagePropertyDialogEventHandler)
remove_MailMergeAfterMerge(ApplicationEvents4_MailMergeAfterMergeEventHandler)
remove_MailMergeAfterRecordMerge(ApplicationEvents4_MailMergeAfterRecordMergeEventHandler)
remove_MailMergeBeforeMerge(ApplicationEvents4_MailMergeBeforeMergeEventHandler)
remove_MailMergeBeforeRecordMerge(ApplicationEvents4_MailMergeBeforeRecordMergeEventHandler)
remove_MailMergeDataSourceLoad(ApplicationEvents4_MailMergeDataSourceLoadEventHandler)
remove_MailMergeDataSourceValidate(ApplicationEvents4_MailMergeDataSourceValidateEventHandler)
remove_MailMergeDataSourceValidate2(ApplicationEvents4_MailMergeDataSourceValidate2EventHandler)
remove_MailMergeWizardSendToCustom(ApplicationEvents4_MailMergeWizardSendToCustomEventHandler)
remove_MailMergeWizardStateChange(ApplicationEvents4_MailMergeWizardStateChangeEventHandler)
remove_NewDocument(ApplicationEvents4_NewDocumentEventHandler)
remove_ProtectedViewWindowActivate(ApplicationEvents4_ProtectedViewWindowActivateEventHandler)
remove_ProtectedViewWindowBeforeClose(ApplicationEvents4_ProtectedViewWindowBeforeCloseEventHandler)
remove_ProtectedViewWindowBeforeEdit(ApplicationEvents4_ProtectedViewWindowBeforeEditEventHandler)
remove_ProtectedViewWindowDeactivate(ApplicationEvents4_ProtectedViewWindowDeactivateEventHandler)
remove_ProtectedViewWindowOpen(ApplicationEvents4_ProtectedViewWindowOpenEventHandler)
remove_ProtectedViewWindowSize(ApplicationEvents4_ProtectedViewWindowSizeEventHandler)
remove_Quit(ApplicationEvents4_QuitEventHandler)
remove_Startup(ApplicationEvents4_StartupEventHandler)
remove_WindowActivate(ApplicationEvents4_WindowActivateEventHandler)
remove_WindowBeforeDoubleClick(ApplicationEvents4_WindowBeforeDoubleClickEventHandler)
remove_WindowBeforeRightClick(ApplicationEvents4_WindowBeforeRightClickEventHandler)
remove_WindowDeactivate(ApplicationEvents4_WindowDeactivateEventHandler)
remove_WindowSelectionChange(ApplicationEvents4_WindowSelectionChangeEventHandler)
remove_WindowSize(ApplicationEvents4_WindowSizeEventHandler)
remove_XMLSelectionChange(ApplicationEvents4_XMLSelectionChangeEventHandler)
remove_XMLValidationError(ApplicationEvents4_XMLValidationErrorEventHandler)

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.

Applies to