ListViewGroupCollection.Count 属性

定义

获取集合中的组数。Gets the number of groups in the collection.

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

属性值

Int32

集合中的组数。The number of groups in the collection.

实现

注解

此属性用于确定集合中的组数。Use this property to determine the number of groups in the collection. 当需要遍历集合并对每个组执行相同操作时,这非常有用。This is useful when you need to loop through the collection and perform the same operation on each group. 你还可以使用 IEnumerator 方法返回的 GetEnumerator 来循环访问集合。You can also use the IEnumerator returned by the GetEnumerator method to iterate through the collection.

适用于