UIElementCollection.GetMany(UInt32, UIElement[]) Method

Definition

Retrieves multiple elements in a single pass through the iterator.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.UIElementCollection.GetMany.

public:
 virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <UIElement ^> ^ items) = IVector<UIElement ^>::GetMany;
uint32_t GetMany(uint32_t startIndex, std::Array <UIElement const &> const & items);
public uint GetMany(uint startIndex, UIElement[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As UIElement()) As UInteger

Parameters

startIndex
UInt32

The index from which to start retrieval.

items
UIElement[]

Provides the destination for the result. Size the initial array size as a "capacity" in order to specify how many results should be retrieved.

Returns

UInt32

The number of items retrieved.

Implements

Remarks

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

Applies to