DrawingCollection.CopyTo Method (Drawing[], Int32)

 

Copies the items of this DrawingCollection, starting with the specified index value, into an array of Drawing objects.

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

public void CopyTo(
	Drawing[] array,
	int index
)

Parameters

array
Type: System.Windows.Media.Drawing[]

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

index
Type: System.Int32

The index at which copying begins.

Exception Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional.

-or-

The number of items in the source DrawingCollection 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: