Document events
Office 2013 and later
The Document type exposes the following members.
| Name | Description | |
|---|---|---|
|
BuildingBlockInsert | Occurs when you insert a building block into a document. (Inherited from DocumentEvents2_Event.) |
|
Close | Occurs when a document is closed. (Inherited from DocumentEvents2_Event.) |
|
ContentControlAfterAdd | Occurs after adding a content control to a document. (Inherited from DocumentEvents2_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.) |
|
ContentControlBeforeDelete | Occurs before removing a content control from a document. (Inherited from DocumentEvents2_Event.) |
|
ContentControlBeforeStoreUpdate | Occurs before updating the document's XML data store with the value of a content control. (Inherited from DocumentEvents2_Event.) |
|
ContentControlOnEnter | Occurs when a user enters a content control. (Inherited from DocumentEvents2_Event.) |
|
ContentControlOnExit | Occurs when a user leaves a content control. (Inherited from DocumentEvents2_Event.) |
|
New | Occurs when a new document based on the template is created. (Inherited from DocumentEvents2_Event.) |
|
Open | Occurs when a document is opened. (Inherited from DocumentEvents2_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.) |
|
XMLAfterInsert | Occurs when a user adds a new XML element to a document. (Inherited from DocumentEvents2_Event.) |
|
XMLBeforeDelete | Occurs when a user deletes an XML element from a document. (Inherited from DocumentEvents2_Event.) |
Show: