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
Parameter | Type | Description |
---|---|---|
array | System::ArrayPtr<System::SharedPtr<IMathElement>> | Array to copy to. |
arrayIndex | int32_t | Index 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
- Typedef ArrayPtr
- Typedef SharedPtr
- Class IMathElement
- Class MathBlock
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides