次の方法で共有


_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 名前空間