This topic has not yet been rated - Rate this topic

_Application2.XDocuments property

Office 2013

This documentation is preliminary and is subject to change.

Gets a reference to the XDocuments collection.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
XDocumentsCollection XDocuments { get; }

Implements

_Application.XDocuments

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

Important note Important

This member can be accessed without restrictions.

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.XDocuments.Count);
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.