UIElementCollection.Size 属性

定义

获取集合的大小 (计数) 。

public:
 property unsigned int Size { unsigned int get(); };
uint32_t Size();
public uint Size { get; }
var uInt32 = uIElementCollection.size;
Public ReadOnly Property Size As UInteger

属性值

UInt32

unsigned int

uint32_t

集合中的项计数。

实现

注解

Size 值返回项目的真实数量。 使用索引的 API(如 GetAt)使用从零开始的索引,因此,你可以从 Size 中减去一个索引,以指定想要集合中的最后一项。

如果使用 C# 或 Microsoft Visual Basic 进行编程,请参阅 Count

适用于