XmlFormCollection Class
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.
Contains an XmlForm object for each form that is currently open.
public ref class XmlFormCollection abstract : System::Collections::IEnumerable
public abstract class XmlFormCollection : System.Collections.IEnumerable
type XmlFormCollection = class
interface IEnumerable
Public MustInherit Class XmlFormCollection
Implements IEnumerable
- Inheritance
-
XmlFormCollection
- Implements
Remarks
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.
Constructors
XmlFormCollection() |
Properties
Count |
Gets a count of the number of XmlForm objects that are contained in the collection. |
Item[Int32] |
Gets a reference to the specified XmlForm object from the collection by index value. |
Methods
GetEnumerator() |
Gets an System.Collections.IEnumerator object that iterates over all entries in the XmlFormCollection object. |
New(String, XmlFormOpenMode) |
Creates a new form that is based on the specified form by using the specified open mode behavior. |
New(String) |
Creates a new form that is based on the specified form. |
NewFromFormTemplate(String, String, XmlFormOpenMode) |
Creates a new form by using the specified form template with data specified by an XPathNavigator object and opened in the specified XmlFormOpenMode. |
NewFromFormTemplate(String, String) |
Creates a new form that uses the specified form template and XML data file. |
NewFromFormTemplate(String, XPathNavigator) |
Creates a new form by using the specified form template with data specified by an XPathNavigator object. |
NewFromFormTemplate(String) |
Creates a new form that is based on the specified form template, with optional data. |
NewFromFormTemplateWithInputParameters(String, String) |
Creates a new form with the specified form template and input parameters. |
Open(String, XmlFormOpenMode) |
Opens the specified form by using the specified open mode behavior. |
Open(String) |
Opens the specified form. |