ListView.ListViewItemCollection.Count ListView.ListViewItemCollection.Count ListView.ListViewItemCollection.Count ListView.ListViewItemCollection.Count Property

定义

获取集合中的项数。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

属性值

集合中项的数目。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.

适用于