ApplicationEvents4_MailMergeDataSourceValidateEventHandler Delegate
A Delegate type used to add an event handler for the MailMergeDataSourceValidate event. The MailMergeDataSourceValidate event occurs when a user performs address verification by clicking Validate in the Mail Merge Recipients dialog box.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_MailMergeDataSourceValidateEventHandler ( _
Doc As Document, _
ByRef Handled As Boolean _
)
'Usage
Dim instance As New ApplicationEvents4_MailMergeDataSourceValidateEventHandler(AddressOf HandlerMethod)
[ComVisibleAttribute(false)]
public delegate void ApplicationEvents4_MailMergeDataSourceValidateEventHandler(
Document Doc,
ref bool Handled
)
Parameters
- Doc
Type: Microsoft.Office.Interop.Word.Document
The mail merge main document.
- Handled
Type: System.Boolean%
True runs the accompanying validation code against the mail merge data source. False cancels the data source validation.