次の方法で共有


ListView.ColumnHeaderCollection.Count プロパティ

定義

コレクション内のアイテムの数を取得します。

public:
 property int Count { int get(); };
[System.ComponentModel.Browsable(false)]
public int Count { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Count : int
Public ReadOnly Property Count As Integer

プロパティ値

コレクション内の項目の数。

実装

属性

注釈

このプロパティを使用すると、View プロパティが Details に設定されている場合にListViewに表示される列の数を決定できます。 この値は、コレクションの値をループ処理しているときに、ループを実行するために反復回数を指定する必要がある場合に使用できます。

適用対象

こちらもご覧ください