DocumentEvents2_Event Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Events interface for Microsoft Word Document object events.
public interface class DocumentEvents2_Event
[System.Runtime.InteropServices.ComVisible(false)]
public interface DocumentEvents2_Event
type DocumentEvents2_Event = interface
Public Interface DocumentEvents2_Event
- Derived
- Attributes
Methods
Events
BuildingBlockInsert |
Occurs when you insert a building block into a document. |
Close |
Occurs when a document is closed. |
ContentControlAfterAdd |
Occurs after adding a content control to a document. |
ContentControlBeforeContentUpdate |
Occurs before updating the content in a content control, only when the content comes from the Office XML data store. |
ContentControlBeforeDelete |
Occurs before removing a content control from a document. |
ContentControlBeforeStoreUpdate |
Occurs before updating the document's XML data store with the value of a content control. |
ContentControlOnEnter |
Occurs when a user enters a content control. |
ContentControlOnExit |
Occurs when a user leaves a content control. |
New |
Occurs when a new document based on the template is created. |
Open |
Occurs when a document is opened. |
Sync |
Occurs when the local copy of a document that is part of a Document Workspace is synchronized with the copy on the server. |
XMLAfterInsert |
Occurs when a user adds a new XML element to a document. |
XMLBeforeDelete |
Occurs when a user deletes an XML element from a document. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應