DataGridItemCollection.Count 属性
定义
获取集合中 DataGridItem 对象的数量。Gets the number of DataGridItem objects in the collection.
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
属性值
集合中 DataGridItem 对象的数目。The number of DataGridItem objects in the collection.
实现
注解
使用 Count 属性可确定 DataGridItem 集合中的对象数 DataGridItemCollection 。Use the Count property to determine the number of DataGridItem objects in the DataGridItemCollection collection. 此 Count 属性通常在循环访问集合时使用,以确定集合的上限。The Count property is commonly used when iterating through the collection to determine the upper bound of the collection.