ListView.SelectedIndexCollection.CopyTo Method (Array, Int32)


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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void CopyTo(
	Array dest,
	int index


Type: System.Array

An Array representing the array to copy the contents of the collection to.

Type: System.Int32

The location within the destination array to copy the items from the collection to.

You can use this method to combine the selected indexes from multiple collections into a single array.

.NET Framework
Available since 1.1
Return to top