ListBox.ObjectCollection.Count ListBox.ObjectCollection.Count ListBox.ObjectCollection.Count ListBox.ObjectCollection.Count Property

定义

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

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

属性值

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

实现

注解

此属性可确定中的项数ListBoxThis property enables you to determine the number of items in the ListBox. 然后,将循环访问集合的值和你需要提供要执行循环的迭代次数时,可以使用此值。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.

适用于