copy_to method

copy_to

Copies the elements of the System.Collections.Generic.ICollection`1 to an System.Array, starting at a particular System.Array index.

def copy_to(self, array, array_index):
    ...
ParameterTypeDescription
arrayList[IParagraph]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.
array_indexintThe zero-based index in <br/><br/>array

at which copying begins.

Exceptions

ExceptionDescription
RuntimeError(Proxy error(ArgumentNullException))<br/>array
is null.
RuntimeError(Proxy error(ArgumentOutOfRangeException))<br/>array_index
is less than 0.
RuntimeError(Proxy error(ArgumentException))The number of elements in the source **System.Collections.Generic.ICollection1** is greater than the available space from
array_index<br/> to the end of the destination
array`
.

See Also