ListViewGroupCollection.Count 屬性

定義

取得集合中的群組數目。

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

屬性值

集合中的群組數。

實作

備註

使用這個屬性來判斷集合中的群組數目。 當您需要迴圈查看集合,並在每個群組上執行相同的作業時,這非常有用。 您也可以使用 IEnumerator 方法所傳回的 GetEnumerator 來逐一查看集合。

適用於