A read-only property that returns a count of the number of forms being merged in a merging operation.
expression.Count
expression Required. An expression that returns a reference to a MergeEvent object.
Security Level
0: Can be accessed without restrictions.
Remarks
The Count property can be used in combination with the Index property of the MergeEvent object to determine when the last form was merged.
Note This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.
Example
This example shows how to use the Index property along with the Count property of an instance of the MergeEvent object to determine if the current form is the last form being merged:
var fLast = eventObj.Index + 1 == eventObj.Count;