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)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub DocumentEvents2_NewEventHandler
'Usage
Dim instance As New DocumentEvents2_NewEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void DocumentEvents2_NewEventHandler()
Remarks
A procedure for the New event will run only if it is stored in a template.