[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.CollectionBase-1.CopyTo

CopyTo Method

CopyTo(T[], int)

Copies the collection objects to a one-dimensional Array instance beginning at the specified index.

Declaration
public void CopyTo(T[] array, int index)
Public Sub CopyTo(array As T(), index As Integer)
Parameters
Type Name Description
T[] array

The one-dimensional Array that is the destination of the values copied from the collection.

int index

The index of the array at which to begin inserting.

Exceptions
Type Condition
ArgumentNullException

The array parameter is null.

ArgumentOutOfRangeException

The index parameter is less than the target array's minimum index.

ArgumentException

The destination array is multidimensional.-or- The number of elements in the Collection is greater than the available space between the index of the target array specified by the index parameter and the end of the target array.