GrapeCity MultiRow Windows Forms Documentation
CopyTo Method (CellCollection)


The one-dimensional System.Array that is the destination of the elements copied from CellCollection. The System.Array must have a zero-based index.
The zero-based index in the array at which copying begins.
Copies the elements of the CellCollection to an System.Array, starting at a particular System.Array index.
Syntax
<TakeCellFreezeAttribute()>
Public Sub CopyTo( _
   ByVal array() As Cell, _
   ByVal arrayIndex As Integer _
) 
Dim instance As CellCollection
Dim array() As Cell
Dim arrayIndex As Integer
 
instance.CopyTo(array, arrayIndex)
[TakeCellFreeze()]
public void CopyTo( 
   Cell[] array,
   int arrayIndex
)

Parameters

array
The one-dimensional System.Array that is the destination of the elements copied from CellCollection. The System.Array must have a zero-based index.
arrayIndex
The zero-based index in the array at which copying begins.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException

The arrayIndex is less than 0.

-or-

The arrayIndex is equal to or greater than the length of array.

System.ArgumentNullExceptionThe array is a null reference (Nothing in Visual Basic).
System.ArgumentException

The array is multidimensional.

-or-

The number of elements in the source CellCollection is greater than the available space from arrayIndex to the end of the destination array.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CellCollection Class
CellCollection Members

 

 


Copyright © GrapeCity, inc. All rights reserved.