共用方式為


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 迴圈的上界。

適用於

另請參閱