DocumentBase Events

Include Protected Members
Include Inherited Members

The DocumentBase type exposes the following members.

Events

  Name Description
Public event ActivateEvent Occurs when the document becomes the active window.
Public event BeforeClose Occurs immediately before the document closes.
Public event BeforeDoubleClick Occurs when the editing area of the document window is double-clicked, before the default double-click action.
Public event BeforePrint Occurs before the document is printed.
Public event BeforeRightClick Occurs when the editing area of the document window is right-clicked, before the default right-click action.
Public event BeforeSave Occurs before the document is saved.
Public event BindingContextChanged Infrastructure.
Public event BuildingBlockInsert Occurs when a building block is inserted into a document.
Public event CloseEvent Occurs when the document is closed.
Public event ContentControlAfterAdd Occurs after a content control is added to a document.
Public event ContentControlBeforeContentUpdate Occurs just before Microsoft Office Word updates the text in a content control, if the content control is bound to a custom XML part.
Public event ContentControlBeforeDelete Occurs just before a content control is deleted from the document.
Public event ContentControlBeforeStoreUpdate 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).
Public event ContentControlOnEnter Occurs when the user clicks in a content control, or when the cursor is moved into a content control programmatically.
Public event ContentControlOnExit Occurs when the user clicks outside a content control, or when the cursor is moved outside a content control programmatically.
Public event Deactivate Occurs when the active document window loses focus.
Public event Disposed Infrastructure.
Public event MailMergeAfterMerge Occurs after all records in a mail merge have merged successfully.
Public event MailMergeAfterRecordMerge Occurs after each record in the data source successfully merges in a mail merge.
Public event MailMergeBeforeMerge Occurs when a merge is executed, before any records merge.
Public event MailMergeBeforeRecordMerge Occurs as a merge is executed for the individual records in a merge.
Public event MailMergeDataSourceLoad Occurs when the data source is loaded for a mail merge.
Public event MailMergeWizardSendToCustom Occurs when the custom button is clicked on step six of the Mail Merge Wizard.
Public event MailMergeWizardStateChange Occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.
Public event New Occurs when a new document is created.
Public event Open Occurs when the document is opened.
Public event SelectionChange Occurs when the selection changes in the document window.
Public event Shutdown Occurs when the document host item shuts down.
Public event Startup Occurs after the document is running and all the initialization code in the assembly has been run.
Public event SyncEvent Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server.
Public event WindowSize Occurs when the document window is resized or moved.
Public event XMLAfterInsert 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.
Public event XMLBeforeDelete 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.

Top

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace