Document.Startup 事件 (2007 系統)

更新:2007 年 11 月

會在文件開始執行而且組件中的所有初始化程式碼也都已執行後發生。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v9.0 (在 Microsoft.Office.Tools.Word.v9.0.dll 中)

語法

Public Event Startup As EventHandler

Dim instance As Document
Dim handler As EventHandler

AddHandler instance.Startup, handler
public event EventHandler Startup

備註

此事件是在類別的建構函式 (Constructor) 中執行的最後一個項目,其中使用者會在該類別中執行程式碼。使用這個事件進行任何其他初始化。

您應該使用現有的而不是建立新的 Startup 事件處理常式。

使用權限

請參閱

參考

Document 類別

Document 成員

Microsoft.Office.Tools.Word 命名空間