共用方式為


_Application3.XDocuments 屬性

取得 XDocuments 集合的參照。

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<DispIdAttribute(3)> _
ReadOnly Property XDocuments As XDocumentsCollection
'用途
Dim instance As _Application3
Dim value As XDocumentsCollection

value = instance.XDocuments
[DispIdAttribute(3)] 
XDocumentsCollection XDocuments { get; }

屬性值

XDocuments 集合的參照。

備註

設定 XDocuments 集合的參照之後,您可以使用它的屬性來存取它所包含的每個 XDocument 物件。

範例

在下列範例中,XDocuments 屬性是用於存取 XDocumentsCollection 集合的 Count 屬性,並在訊息方塊中顯示其值:

thisXDocument.UI.Alert("Count of XDocuments: " + thisApplication.XDocuments.Count);

請參閱

參考

_Application3 介面
_Application3 成員
Microsoft.Office.Interop.InfoPath 命名空間