DocumentEvents2_Event 接口

定义

Microsoft Word 对象事件的事件接口 DocumentEvents 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
派生
属性

方法

add_BuildingBlockInsert(DocumentEvents2_BuildingBlockInsertEventHandler)
add_Close(DocumentEvents2_CloseEventHandler)
add_ContentControlAfterAdd(DocumentEvents2_ContentControlAfterAddEventHandler)
add_ContentControlBeforeContentUpdate(DocumentEvents2_ContentControlBeforeContentUpdateEventHandler)
add_ContentControlBeforeDelete(DocumentEvents2_ContentControlBeforeDeleteEventHandler)
add_ContentControlBeforeStoreUpdate(DocumentEvents2_ContentControlBeforeStoreUpdateEventHandler)
add_ContentControlOnEnter(DocumentEvents2_ContentControlOnEnterEventHandler)
add_ContentControlOnExit(DocumentEvents2_ContentControlOnExitEventHandler)
add_New(DocumentEvents2_NewEventHandler)
add_Open(DocumentEvents2_OpenEventHandler)
add_Sync(DocumentEvents2_SyncEventHandler)
add_XMLAfterInsert(DocumentEvents2_XMLAfterInsertEventHandler)
add_XMLBeforeDelete(DocumentEvents2_XMLBeforeDeleteEventHandler)
remove_BuildingBlockInsert(DocumentEvents2_BuildingBlockInsertEventHandler)
remove_Close(DocumentEvents2_CloseEventHandler)
remove_ContentControlAfterAdd(DocumentEvents2_ContentControlAfterAddEventHandler)
remove_ContentControlBeforeContentUpdate(DocumentEvents2_ContentControlBeforeContentUpdateEventHandler)
remove_ContentControlBeforeDelete(DocumentEvents2_ContentControlBeforeDeleteEventHandler)
remove_ContentControlBeforeStoreUpdate(DocumentEvents2_ContentControlBeforeStoreUpdateEventHandler)
remove_ContentControlOnEnter(DocumentEvents2_ContentControlOnEnterEventHandler)
remove_ContentControlOnExit(DocumentEvents2_ContentControlOnExitEventHandler)
remove_New(DocumentEvents2_NewEventHandler)
remove_Open(DocumentEvents2_OpenEventHandler)
remove_Sync(DocumentEvents2_SyncEventHandler)
remove_XMLAfterInsert(DocumentEvents2_XMLAfterInsertEventHandler)
remove_XMLBeforeDelete(DocumentEvents2_XMLBeforeDeleteEventHandler)

事件

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

在更新内容控件中的内容之前发生,仅适用于内容来自 Office XML 数据存储区的情况。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

将文档的 XML 数据存储更新为内容控件的值之前出现。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

用户向文档中添加新 XML 元素时发生。Occurs when a user adds a new XML element to a document.

XMLBeforeDelete

用户从文档中删除 XML 元素时发生。Occurs when a user deletes an XML element from a document.

适用于