Düzenle

Aracılığıyla paylaş


XDocumentsCollection Interface

Definition

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

public interface class XDocumentsCollection : Microsoft::Office::Interop::InfoPath::XDocuments2
[System.Runtime.InteropServices.Guid("096CD647-0786-11D1-95FA-0080C78EE3BB")]
public interface XDocumentsCollection : Microsoft.Office.Interop.InfoPath.XDocuments2
type XDocumentsCollection = interface
    interface XDocuments2
Public Interface XDocumentsCollection
Implements XDocuments2
Derived
Attributes
Implements

Remarks

This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, 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 Office 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 Office InfoPath form based on the specified form.

(Inherited from XDocuments2)
NewFromSolution(Object)

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

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

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

(Inherited from XDocuments2)
Open(Object, Int32)

Opens the specified Microsoft Office InfoPath form.

(Inherited from XDocuments2)

Applies to