DocumentEvents2_Event.Open 事件

定义

在打开文档时发生。Occurs when a document is opened.

public:
 event Microsoft::Office::Interop::Word::DocumentEvents2_OpenEventHandler ^ Open;
event Microsoft.Office.Interop.Word.DocumentEvents2_OpenEventHandler Open;
member this.Open : Microsoft.Office.Interop.Word.DocumentEvents2_OpenEventHandler 
Event Open As DocumentEvents2_OpenEventHandler 

事件类型

DocumentEvents2_OpenEventHandler

注解

如果事件过程存储在一个模板中,则在打开基于该模板的新文档或将该模板本身作为文档打开时,将运行该过程。If the event procedure is stored in a template, the procedure will run when a new document based on that template is opened and when the template itself is opened as a document.

适用于