XmlFormCollection class
Office 2013 and later
Contains an XmlForm object for each form that is currently open.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
The XmlFormCollection class implements properties and methods that can be used to access a form's associated XmlForm object, or to create and open the forms themselves. The XmlFormCollection object for the current instance of InfoPath is accessed through the XmlForms property of the Application object.
Show: