次の方法で共有


Windows.Count プロパティ

定義

コレクションに含まれるオブジェクトの 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 &lt; thisApplication.Windows.<span class="label">Count</span>; i++)
{
 thisXDocument.UI.Alert("Window type: " + thisApplication.Windows[i].WindowType);
}

適用対象