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)

Usage

Sub Sub1(Doc As Document, _
    FromState As Integer, _
    ToState As Integer, _
    Handled As Boolean)
End Sub
Dim applicationEvents4_MailMergeWizardStateChangeEventHandler1 As New ApplicationEvents4_MailMergeWizardStateChangeEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub ApplicationEvents4_MailMergeWizardStateChangeEventHandler( _
    <InAttribute()> ByVal Doc As Document, _
    <InAttribute()> ByRef FromState As Integer, _
    <InAttribute()> ByRef ToState As Integer, _
    <InAttribute()> ByRef Handled As Boolean _
)
public delegate void ApplicationEvents4_MailMergeWizardStateChangeEventHandler(
    [In] Document Doc, 
    [In] ref int FromState, 
    [In] ref int ToState, 
    [In] ref bool Handled
);
public delegate Void ApplicationEvents4_MailMergeWizardStateChangeEventHandler(
    Document^ Doc, 
    &Int32 FromState, 
    &Int32 ToState, 
    &Boolean Handled
);
public delegate void ApplicationEvents4_MailMergeWizardStateChangeEventHandler(
    /*in*/Document Doc, 
    /*in*/int FromState, 
    /*in*/int ToState, 
    /*in*/boolean Handled
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Doc
    The mail merge main document.
  • FromState
    The Mail Merge Wizard step from which a user is moving.
  • ToState
    The Mail Merge Wizard step to which a user is moving.
  • Handled
    True moves the user to the next step. False for the user to remain at the current step.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace