ComponentOne DataGrid for WPF and Silverlight
CopyTo Method (DataGridCellsRangeCollection)

C1.Silverlight.DataGrid Namespace > DataGridCellsRangeCollection Class : CopyTo Method
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The System.Array must have zero-based indexing.
The zero-based index in array at which copying begins.
Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.
Syntax
'Declaration
 
Public Sub CopyTo( _
   ByVal array() As DataGridCellsRange, _
   ByVal arrayIndex As System.Integer _
) 
public void CopyTo( 
   DataGridCellsRange[] array,
   System.int arrayIndex
)

Parameters

array
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection`1. The System.Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Exceptions
ExceptionDescription
array is null.
arrayIndex is less than 0.
array is multidimensional.-or-The number of elements in the source System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array.-or-Type cannot be cast automatically to the type of the destination array.
See Also

Reference

DataGridCellsRangeCollection Class
DataGridCellsRangeCollection Members