語言

ListViewGroupCollection.Count 屬性

定義

取得集合中群組的數量。

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

屬性值

收藏中的群組數量。

實作

備註

利用此特性來決定集合中的群組數量。 當你需要在集合中迴圈並對每個群組執行相同操作時,這非常有用。 你也可以用 IEnumerator return by the GetEnumerator method 來遍歷集合。

適用於