共用方式為


DocumentBase.Startup Event

Occurs after the document is running and all the initialization code in the assembly has been run.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public Event Startup As EventHandler
public event EventHandler Startup

Remarks

This event is the last thing to run in the constructor of the class that the user code is running in. Use this event for any additional initialization.

You should use the existing Startup event handler in your project, rather than creating a new one.

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace