ViewInfos.Count プロパティ

定義

コレクションに含まれるオブジェクトの ViewInfoObject 数を ViewInfosCollection 取得します。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

次の例では、for ループ内で Count プロパティを使用して、ViewInfo オブジェクトのコレクションを反復処理し、フォームに実装された各ビューの名前をメッセージ ボックスに表示しています。

for (int i=0; i &lt; thisXDocument.ViewInfos.<span class="label">Count</span>; i++)
{
 thisXDocument.UI.Alert("View name: " + thisXDocument.ViewInfos[i].Name);
}

適用対象