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.

適用於