CopyTo()

PortionCollection::CopyTo(System::ArrayPtr<System::SharedPtr<IPortion>>, int32_t) method

Copies the elements of the ICollection to an System::Array, starting at a particular System::Array index.

void Aspose::Slides::PortionCollection::CopyTo(System::ArrayPtr<System::SharedPtr<IPortion>> array, int32_t arrayIndex)

Arguments

ParameterTypeDescription
arraySystem::ArrayPtr<System::SharedPtr<IPortion>>The one-dimensional System::Array that is the destination of the elements copied from ICollection. The System::Array must have zero-based indexing.
arrayIndexint32_tThe zero-based index in array at which copying begins.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionarray is null.
System::ArgumentOutOfRangeExceptionarrayIndex is less than 0.
System::ArgumentExceptionThe number of elements in the source ICollection is greater than the available space from arrayIndex to the end of the destination array .

See Also