Breyta

Deila með


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.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

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

CopyTo(Visual[], Int32)

Copies the current collection into the passed Visual array.

public:
 void CopyTo(cli::array <System::Windows::Media::Visual ^> ^ array, int index);
public void CopyTo (System.Windows.Media.Visual[] array, int index);
member this.CopyTo : System.Windows.Media.Visual[] * int -> unit
Public Sub CopyTo (array As Visual(), index As Integer)

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