Add()

MathParagraph::Add(System::SharedPtr<IMathBlock>) method

Adds IMathBlock to the end of collection.

void Aspose::Slides::MathText::MathParagraph::Add(System::SharedPtr<IMathBlock> mathBlock) override

Arguments

ParameterTypeDescription
mathBlockSystem::SharedPtr<IMathBlock>A mathematical block that will be added to the end of the collection

Remarks

Example:

auto shape = slide->get_Shapes()->AddMathShape(x, y, width, height);
auto mathParagraph = (System::AsCast<MathPortion>(shape->get_TextFrame()->get_Paragraphs()->idx_get(0)->get_Portions()->idx_get(0)))->get_MathParagraph();
mathParagraph->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x")));

See Also