This documentation is archived and is not being maintained.

ListView.SelectedIndexCollection.CopyTo Method

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
An Array representing the array to copy the contents of the collection to.The destination array.
index
The location within the destination array to copy the items from the collection to.

Implements

ICollection.CopyTo

Remarks

You can use this method to combine the selected indexes from multiple collections into a single 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

ListView.SelectedIndexCollection Class | ListView.SelectedIndexCollection Members | System.Windows.Forms Namespace

Show: