TypeConverter.StandardValuesCollection.Count 屬性

定義

取得集合中的物件數目。

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

屬性值

集合中 物件的數目。

實作

備註

Count屬性可用來設定迴圈的限制,以逐一查看 物件的集合。 由於集合是以零起始,因此請務必使用 Count - 1 作為迴圈的上限。

適用於

另請參閱