ListView.ListViewItemCollection.Count 属性

定义

获取集合中的项数。Gets the number of items in the collection.

public:
 property int Count { int get(); };
[System.ComponentModel.Browsable(false)]
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

Int32

集合中的项数。The number of items in the collection.

实现

属性

注解

此属性使您能够确定 ListView中的项数。This property enables you to determine the number of items in the ListView. 然后,你可以在遍历集合的值时使用此值,并且需要提供多个迭代来执行循环。You can then use this value when you are looping through the values of the collection and you need to provide a number of iterations to perform the loop.

适用于