ListView.ListViewItemCollection.Count 属性

定义

获取集合中的项数。

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

属性值

Int32

集合中项的数目。

实现

属性

注解

此属性使你能够确定其中 ListView的项目数。 然后,在循环访问集合的值时,可以使用此值,并且需要提供大量迭代来执行循环。

适用于