Dela via


MailMergeWizardStateChangeEventArgs Class (2007 System)

Provides data for the MailMergeWizardStateChange event.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class MailMergeWizardStateChangeEventArgs _
    Inherits EventArgs
'Usage
Dim instance As MailMergeWizardStateChangeEventArgs
[CLSCompliantAttribute(false)]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class MailMergeWizardStateChangeEventArgs : EventArgs
[CLSCompliantAttribute(false)]
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class MailMergeWizardStateChangeEventArgs : public EventArgs
public class MailMergeWizardStateChangeEventArgs extends EventArgs

Examples

The following code example demonstrates an event handler for the MailMergeWizardStateChange event. The event handler displays a message each time the user advances to the next step in the Mail Merge wizard.

This example is for a document-level customization.

Private Sub DocumentMailMergeWizardStateChange()
    AddHandler Me.MailMergeWizardStateChange, AddressOf ThisDocument_MailMergeWizardStateChange
End Sub 

Private Sub ThisDocument_MailMergeWizardStateChange(ByVal sender As Object, ByVal e As Microsoft.Office.Tools.Word.MailMergeWizardStateChangeEventArgs)
    MessageBox.Show("Wizard has moved to next step.")
End Sub
private void DocumentMailMergeWizardStateChange()
{
    this.MailMergeWizardStateChange += new Microsoft.Office.Tools.Word.MailMergeWizardStateChangeEventHandler(ThisDocument_MailMergeWizardStateChange);
}

void ThisDocument_MailMergeWizardStateChange(object sender, Microsoft.Office.Tools.Word.MailMergeWizardStateChangeEventArgs e)
{
    MessageBox.Show("Wizard has moved to next step.");
}

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.Office.Tools.Word.MailMergeWizardStateChangeEventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MailMergeWizardStateChangeEventArgs Members

Microsoft.Office.Tools.Word Namespace