CopyTo()

MathBlock::CopyTo(System::ArrayPtr<System::SharedPtr<IMathElement>>, int32_t) method

Copy to specified array.

void Aspose::Slides::MathText::MathBlock::CopyTo(System::ArrayPtr<System::SharedPtr<IMathElement>> array, int32_t arrayIndex) override

Arguments

ParameterTypeDescription
arraySystem::ArrayPtr<System::SharedPtr<IMathElement>>Array to copy to.
arrayIndexint32_tIndex to begin copying.

Remarks

Example:

auto mathBlock = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));
auto plusElement = System::MakeObject<MathematicalText>(u"+");
mathBlock->Add(plusElement);
mathBlock->Add(System::MakeObject<MathRadical>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"3")));
auto destinationArray = System::MakeArray<System::SharedPtr<Aspose::Slides::MathText::IMathElement>>(mathBlock->get_Count());
mathBlock->CopyTo(destinationArray, 0);

See Also