XDocumentsCollection Interface

Definition

Contains an XDocument object for each Microsoft InfoPath form that is currently open.

public interface class XDocumentsCollection : Microsoft::Office::Interop::InfoPath::SemiTrust::XDocuments2
[System.Runtime.InteropServices.Guid("096cd647-0786-11d1-95fa-0080c78ee3bb")]
public interface XDocumentsCollection : Microsoft.Office.Interop.InfoPath.SemiTrust.XDocuments2
type XDocumentsCollection = interface
    interface XDocuments2
    interface XDocuments
Public Interface XDocumentsCollection
Implements XDocuments2
Attributes
Implements

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeXDocuments2.

The XDocumentsCollection implements a number of properties and methods that can be used to access a form's associated XDocument object, or to create and open the forms themselves. The XDocumentsCollection is accessed through the XDocuments property of the Application object.

Properties

Count

Gets a count of the number of XDocument objects contained in the collection.

(Inherited from XDocuments2)
Item[Object]

Gets a reference to the specified XDocument object from the collection.

(Inherited from XDocuments2)

Methods

Close(Object)

Closes the specified Microsoft InfoPath form.

(Inherited from XDocuments2)
GetEnumerator()

Gets an IEnumerator that iterates over all entries in the XDocumentsCollection object.

(Inherited from XDocuments2)
New(Object, Int32)

Creates a new Microsoft InfoPath form based on the specified form.

(Inherited from XDocuments2)
NewFromSolution(Object)

Creates a new Microsoft InfoPath form based on the specified form template.

(Inherited from XDocuments2)
NewFromSolutionWithData(Object, Object, Int32)

Creates a new Microsoft InfoPath form using the specified XML data and form template.

(Inherited from XDocuments2)
Open(Object, Int32)

Opens the specified Microsoft InfoPath form.

(Inherited from XDocuments2)

Applies to