MergeEventArgs.Index property

Office 2013 and later

Gets the zero-based index of the form that is currently being merged.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Public MustOverride ReadOnly Property Index As Integer
Dim instance As MergeEventArgs
Dim value As Integer

value = instance.Index

Property value

Type: System.Int32
The numeric index of the form being merged.

The value of the Index property increases from 0 to Count-1 for each Merge event that occurs when multiple forms are merged.

When used in combination with the Count property, the Index property can be used to determine when the last form has been merged.

This property can be used only during the Merge event.

This member can be accessed without restrictions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.