DocumentEvents2_Event members

Events interface for Microsoft Word Document object events.

The DocumentEvents2_Event type exposes the following members.

  Name Description
Public event BuildingBlockInsert Occurs when you insert a building block into a document.
Public event Close Occurs when a document is closed.
Public event ContentControlAfterAdd Occurs after adding a content control to a document.
Public event ContentControlBeforeContentUpdate Occurs before updating the content in a content control, only when the content comes from the Office XML data store.
Public event ContentControlBeforeDelete Occurs before removing a content control from a document.
Public event ContentControlBeforeStoreUpdate Occurs before updating the document's XML data store with the value of a content control.
Public event ContentControlOnEnter Occurs when a user enters a content control.
Public event ContentControlOnExit Occurs when a user leaves a content control.
Public event New Occurs when a new document based on the template is created.
Public event Open Occurs when a document is opened.
Public event Sync 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 XMLAfterInsert Occurs when a user adds a new XML element to a document.
Public event XMLBeforeDelete Occurs when a user deletes an XML element from a document.