ComboBox.ObjectCollection.Count 屬性

定義

取得集合中的項目數目。

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

屬性值

Int32

集合中的項目數目

實作

備註

這個屬性可讓您判斷 中的 ComboBox 專案數目。 您可以在迴圈查看集合的值時使用此值。

適用於

另請參閱