Прочетете на английски Редактиране

Споделяне чрез


VisualCollection.CopyTo Method

Definition

Copies the current collection into the passed array.

Overloads

CopyTo(Array, Int32)

Copies the items in the collection to an array, starting at a specific array index.

CopyTo(Visual[], Int32)

Copies the current collection into the passed Visual array.

CopyTo(Array, Int32)

Copies the items in the collection to an array, starting at a specific array index.

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

Parameters

array
Array

The one-dimensional Array that is the destination of the elements that are copied from the VisualCollection.

index
Int32

The zero-based index in array at which copying begins.

Implements

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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(Visual[], Int32)

Copies the current collection into the passed Visual array.

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

Parameters

array
Visual[]

An array of Visual objects (which must have zero-based indexing).

index
Int32

The index to start copying from within array.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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