[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.ReadOnlyStructList-1.CopyTo

CopyTo Method

CopyTo(T[], int)

Copies the entire ReadOnlyStructList<T> to a compatible one-dimensional array, starting at the specified index of the target array.

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

The one-dimensional Array that is the destination of the elements copied from ReadOnlyStructList<T>.

int arrayIndex

The zero-based index in array at which copying begins.

CopyTo(int, T[], int, int)

Copies a range of elements from the ReadOnlyStructList<T> to a compatible one-dimensional array, starting at the specified index of the target array.

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

The zero-based index in the source ReadOnlyStructList<T> at which copying begins.

T[] array

The one-dimensional Array that is the destination of the elements copied from ReadOnlyStructList<T>.

int arrayIndex

The zero-based index in array at which copying begins.

int count

The number of elements to copy.