UIElementCollection.CopyTo Method

Definition

Copies a UIElement from a UIElementCollection to an array, starting at a specified index position.

Overloads

CopyTo(Array, Int32)

Copies a UIElement from a UIElementCollection to an array, starting at a specified index position.

CopyTo(UIElement[], Int32)

Copies a UIElement from a UIElementCollection to an array, starting at a specified index position.

CopyTo(Array, Int32)

Copies a UIElement from a UIElementCollection to an array, starting at a specified index position.

C#
public virtual void CopyTo(Array array, int index);

Parameters

array
Array

An array into which the collection is copied.

index
Int32

The index position of the element where copying begins.

Implements

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

CopyTo(UIElement[], Int32)

Copies a UIElement from a UIElementCollection to an array, starting at a specified index position.

C#
public virtual void CopyTo(System.Windows.UIElement[] array, int index);

Parameters

array
UIElement[]

An array of UIElement objects.

index
Int32

The index position of the element where copying begins.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10