Windows.Count プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コレクションに含まれるオブジェクトの WindowObject 数を WindowsCollection 取得します。
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
プロパティ値
例
次の例では、for ループ内で Count プロパティを使用して Window オブジェクトのコレクション全体のループ処理を行って、ウィンドウの種類の値を示すメッセージ ボックスを表示します。
for (int i=0; i < thisApplication.Windows.<span class="label">Count</span>; i++)
{
thisXDocument.UI.Alert("Window type: " + thisApplication.Windows[i].WindowType);
}