Edit

Share via


XmlFormCollection Class

Definition

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)

Creates a new form that is based on the specified form.

New(String, XmlFormOpenMode)

Creates a new form that is based on the specified form by using the specified open mode behavior.

NewFromFormTemplate(String)

Creates a new form that is based on the specified form template, with optional data.

NewFromFormTemplate(String, String)

Creates a new form that uses the specified form template and XML data file.

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, XPathNavigator)

Creates a new form by using the specified form template with data specified by an XPathNavigator object.

NewFromFormTemplateWithInputParameters(String, String)

Creates a new form with the specified form template and input parameters.

Open(String)

Opens the specified form.

Open(String, XmlFormOpenMode)

Opens the specified form by using the specified open mode behavior.

Applies to