This documentation is archived and is not being maintained.

DocumentEvents2_NewEventHandler Delegate

A Delegate type used to add an event handler for the New event. The New event occurs when a new document based on the template is created.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

<ComVisibleAttribute(False)> _
Public Delegate Sub DocumentEvents2_NewEventHandler
Dim instance As New DocumentEvents2_NewEventHandler(AddressOf HandlerMethod)

A procedure for the New event will run only if it is stored in a template.