次の方法で共有


_Application2.Windows プロパティ

定義

コレクションへの参照を取得します WindowsCollection

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

プロパティ値

実装

次の例では、Windows プロパティを使用してコレクションのWindowsCollectionプロパティにCountアクセスし、メッセージ ボックスに値を表示します。

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

注釈

Windows コレクションへの参照を設定した後は、そのプロパティを使用して、コレクションに含まれる各 Window オブジェクトにアクセスできます。

: Windows コレクションは、含まれている Window オブジェクトの数を取得する場合、または Window オブジェクトへの参照を返す場合にのみ使用できます。 Window オブジェクトを追加または削除するためには使用できません。

重要: このメンバーには制限なしでアクセスできます。

適用対象