編輯

共用方式為


_Application3.XDocuments Property

Definition

Gets a reference to the XDocuments collection.

public:
 property Microsoft::Office::Interop::InfoPath::XDocumentsCollection ^ XDocuments { Microsoft::Office::Interop::InfoPath::XDocumentsCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.XDocumentsCollection XDocuments { get; }
member this.XDocuments : Microsoft.Office.Interop.InfoPath.XDocumentsCollection
Public ReadOnly Property XDocuments As XDocumentsCollection

Property Value

A reference to the XDocuments collection.

Implements

Examples

In the following example, the XDocuments property is used to access the Count property of the XDocumentsCollection collection and display the value in a message box:

thisXDocument.UI.Alert("Count of XDocuments: " + thisApplication.<span class="label">XDocuments</span>.Count);

Remarks

After you have set a reference to the XDocuments collection, you can use its properties to access each of the XDocumentobjects that it contains.

Applies to