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
Parameter | Type | Description |
---|---|---|
mathBlock | System::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
- Typedef SharedPtr
- Class IMathBlock
- Class MathParagraph
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides