次の方法で共有


ListBox.IntegerCollection.Count プロパティ

定義

ListBoxで選択した項目の数を取得します。

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

プロパティ値

ListBoxで選択した項目の数。

実装

属性

注釈

Count プロパティを使用して、ListBox.IntegerCollectionで選択した項目の数を確認します。 その後、項目をループ処理するときにこの値を使用し、ループを実行するために反復回数を指定する必要があります。

適用対象