Document events

Office 2013 and later

The Document type exposes the following members.

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