Export (0) Print
Expand All

Control.ControlCollection.CopyTo Method

.NET Framework 1.1

Copies the entire collection into an existing array at a specified location within the array.

[Visual Basic]
Public Overridable Sub CopyTo( _
   ByVal dest As Array, _
   ByVal index As Integer _
) Implements ICollection.CopyTo
[C#]
public virtual void CopyTo(
 Array dest,
 int index
);
[C++]
public: virtual void CopyTo(
 Array* dest,
 int index
);
[JScript]
public function CopyTo(
   dest : Array,
 index : int
);

Parameters

dest
The destination array.
index
The index in the destination array at which storing begins.

Implements

ICollection.CopyTo

Remarks

CAUTION   All the controls in the collection are copied into the array starting at the specified indexed location, overwriting any existing data within the range of objects copied into the array.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Control.ControlCollection Class | Control.ControlCollection Members | System.Windows.Forms Namespace | Array.Copy

Show:
© 2014 Microsoft