MailMergeWizardStateChangeEventArgs Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for the MailMergeWizardStateChange event.
public interface class MailMergeWizardStateChangeEventArgs
[System.Runtime.InteropServices.Guid("439434ab-eec3-47b3-a0d3-5433474f260e")]
public interface MailMergeWizardStateChangeEventArgs
[<System.Runtime.InteropServices.Guid("439434ab-eec3-47b3-a0d3-5433474f260e")>]
type MailMergeWizardStateChangeEventArgs = interface
Public Interface MailMergeWizardStateChangeEventArgs
- Attributes
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 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.");
}
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
Properties
FromState |
Gets the Mail Merge wizard step from which a user is moving. |
Handled |
Gets a value indicating whether to move the user to the next step in the Mail Merge wizard. |
ToState |
Gets an integer indicating the Mail Merge wizard step to which a user is moving. |