ViewInfos.Count プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コレクションに含まれるオブジェクトの 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 < thisXDocument.ViewInfos.<span class="label">Count</span>; i++)
{
thisXDocument.UI.Alert("View name: " + thisXDocument.ViewInfos[i].Name);
}