_Application3.Windows 屬性
取得 WindowsCollection 集合的參照。
**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)
語法
'宣告
<DispIdAttribute(2)> _
ReadOnly Property Windows As WindowsCollection
'用途
Dim instance As _Application3
Dim value As WindowsCollection
value = instance.Windows
[DispIdAttribute(2)]
WindowsCollection Windows { get; }
屬性值
WindowsCollection 集合的參照。
備註
設定 Windows 集合的參照之後,即可使用其屬性來存取集合所包含的每個 Window 物件。
注意
Windows 集合只能用於取得其本身所包含之 Window 物件的計數,或傳回 Window 物件的參照。它不能用於新增或移除 Window 物件。
範例
在下列範例中,使用 Windows 屬性來存取 WindowsCollection 集合的 Count 屬性,並在訊息方塊中顯示值:
thisXDocument.UI.Alert("Count of Windows: " + thisApplication.Windows.Count);
請參閱
參考
_Application3 介面
_Application3 成員
Microsoft.Office.Interop.InfoPath 命名空間