ListBox.ObjectCollection.Count 屬性

定義

取得集合中的項目數目。

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

屬性值

Int32

集合中的項目數目

實作

備註

這個屬性可讓您判斷 中的 ListBox 專案數。 接著,當您迴圈查看集合的值,而且需要提供一些反復專案來執行迴圈時,就可以使用此值。

適用於