ListViewGroupCollection.Count 属性

定义

获取集合中的组数。

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

属性值

集合中的组数。

实现

注解

使用此属性可确定集合中的组数。 当需要循环访问集合并在每个组上执行相同的操作时,这非常有用。 还可以使用 IEnumerator 方法返回 GetEnumerator 的方法循环访问集合。

适用于