Document Events

 

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

NameDescription
System_CAPS_pubeventActivateEvent

Occurs when the document becomes the active window.

System_CAPS_pubeventBeforeClose

Occurs immediately before the document closes.

System_CAPS_pubeventBeforeDoubleClick

Occurs when the editing area of the document window is double-clicked, before the default double-click action.

System_CAPS_pubeventBeforePrint

Occurs before the document is printed.

System_CAPS_pubeventBeforeRightClick

Occurs when the editing area of the document window is right-clicked, before the default right-click action.

System_CAPS_pubeventBeforeSave

Occurs before the document is saved.

System_CAPS_pubeventBindingContextChanged

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubeventBuildingBlockInsert

Occurs when a building block is inserted into a document.

System_CAPS_pubeventCloseEvent

Occurs when the document is closed.

System_CAPS_pubeventContentControlAfterAdd

Occurs after a content control is added to a document.

System_CAPS_pubeventContentControlBeforeContentUpdate

Occurs just before Microsoft Office Word updates the text in a content control, if the content control is bound to a custom XML part.

System_CAPS_pubeventContentControlBeforeDelete

Occurs just before a content control is deleted from the document.

System_CAPS_pubeventContentControlBeforeStoreUpdate

Occurs just before Microsoft Office Word updates data in a custom XML part that is bound to the content control (that is, after the text in the content control changes).

System_CAPS_pubeventContentControlOnEnter

Occurs when the user clicks in a content control, or when the cursor is moved into a content control programmatically.

System_CAPS_pubeventContentControlOnExit

Occurs when the user clicks outside a content control, or when the cursor is moved outside a content control programmatically.

System_CAPS_pubeventDeactivate

Occurs when the active document window loses focus.

System_CAPS_pubeventDisposed

(Inherited from IComponent.)

System_CAPS_pubeventMailMergeAfterMerge

Occurs after all records in a mail merge have merged successfully.

System_CAPS_pubeventMailMergeAfterRecordMerge

Occurs after each record in the data source successfully merges in a mail merge.

System_CAPS_pubeventMailMergeBeforeMerge

Occurs when a merge is executed, before any records merge.

System_CAPS_pubeventMailMergeBeforeRecordMerge

Occurs as a merge is executed for the individual records in a merge.

System_CAPS_pubeventMailMergeDataSourceLoad

Occurs when the data source is loaded for a mail merge.

System_CAPS_pubeventMailMergeWizardSendToCustom

Occurs when the custom button is clicked on step six of the Mail Merge Wizard.

System_CAPS_pubeventMailMergeWizardStateChange

Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.

System_CAPS_pubeventNew

Occurs when a new document is created.

System_CAPS_pubeventOpen

Occurs when the document is opened.

System_CAPS_pubeventSelectionChange

Occurs when the selection changes in the document window.

System_CAPS_pubeventShutdown

Occurs when the document host item shuts down.

System_CAPS_pubeventStartup

Occurs after the document is running and all the initialization code in the assembly has been run.

System_CAPS_pubeventSyncEvent

Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server.

System_CAPS_pubeventWindowSize

Occurs when the document window is resized or moved.

System_CAPS_pubeventXMLAfterInsert

Occurs when a user adds a new XML element to a document. If more than one element is added to the document at the same time (for example, when cutting and pasting XML), the event is raised for each element that is inserted.

System_CAPS_pubeventXMLBeforeDelete

Occurs when a user deletes an XML element from a document. If more than one element is deleted from the document at the same time (for example, when cutting and pasting XML), the event is raised for each element that is deleted.

Return to top
Show: