UIElementCollection.Size Property

Definition

Gets the size (count) of the collection.

public:
 property unsigned int Size { unsigned int get(); };
uint32_t Size();
public uint Size { get; }
Public ReadOnly Property Size As UInteger

Property Value

UInt32

The count of items in the collection.

Implements

Windows.Foundation.Collections.IVector`1.Size

Remarks

The Size value returns the true number of items. API that use the index, such as GetAt, use a zero-based index, so you would subtract one from Size in order to specify that you want the last item in the collection.

If you are programming using C# or Microsoft Visual Basic, see Count.

Applies to