Share via


ApplicationEvents4_MailMergeWizardStateChangeEventHandler Delegate

A Delegate type used to add an event handler for the MailMergeWizardStateChange event. The MailMergeWizardStateChange event occurs when a user changes from a specified step to a specified step in the Mail Merge Wizard.

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

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_MailMergeWizardStateChangeEventHandler ( _
    Doc As Document, _
    ByRef FromState As Integer, _
    ByRef ToState As Integer, _
    ByRef Handled As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_MailMergeWizardStateChangeEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_MailMergeWizardStateChangeEventHandler(
    Document Doc,
    ref int FromState,
    ref int ToState,
    ref bool Handled
)

Parameters

  • FromState
    Type: System.Int32%
    The Mail Merge Wizard step from which a user is moving.
  • ToState
    Type: System.Int32%
    The Mail Merge Wizard step to which a user is moving.
  • Handled
    Type: System.Boolean%
    True moves the user to the next step. False for the user to remain at the current step.

See Also

Reference

Microsoft.Office.Interop.Word Namespace