DoubleCollection::CopyTo Method (array<Double>^, Int32)

 

Copies the items of this DoubleCollection, starting with the specified index, into an array of Double values.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual void CopyTo(
	array<double>^ array,
	int index
) sealed

Parameters

array
Type: array<System::Double>^

The array that is the destination of the items copied from this DoubleCollection.

index
Type: System::Int32

The index at which to begin copying.

Exception Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional.

-or-

The number of items in the source DoubleCollection is greater than the available space from index to the end of the destination array.

.NET Framework
Available since 3.0
Return to top
Show: