ListBox.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 destination,
	int index
)

Parameters

destination
Type: System.Array

The destination array.

index
Type: System.Int32

The index in the destination array at which storing begins.

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
Show: