System.Windows.Forms.Layout.ArrangedElementCollection.CopyTo Method

Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Syntax

public void CopyTo (Array array, int index)

Parameters

array
The one-dimensional Array that is the destination of the elements copied from the current collection. The array must have zero-based indexing.
index
The zero-based index in array at which copying begins.

Remarks

The type of the specified array must be compatible with the source collection.

This method uses the Array.Copy(Array, Array, int) method to copy the elements.

Requirements

Namespace: System.Windows.Forms.Layout
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0