ListView.SelectedIndexCollection.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

プロパティ値

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

実装

属性

注釈

このプロパティを使用すると、 で選択した項目の数を ListView決定できます。 この値は、コレクションの値をループ処理する際に使用でき、ループを実行するための反復回数を指定する必要があります。 の ListView プロパティが MultiSelectfalse設定されている場合、このプロパティは項目が選択されているかどうかに応じて 0 または 1 の値を返します。

適用対象