通过


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 循环的上限。

适用于

另请参阅