ListBox::SelectedObjectCollection::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:
virtual void CopyTo(
	Array^ destination,
	int index
) sealed

Parameters

destination
Type: System::Array^

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

index
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 items from multiple collections into a single array.

.NET Framework
Available since 1.1
Return to top
Show: