Add()
MathBlock::Add(System::SharedPtr<IMathElement>) method
Adds a math element to the end of the collection.
void Aspose::Slides::MathText::MathBlock::Add(System::SharedPtr<IMathElement> item) override
Arguments
Parameter | Type | Description |
---|---|---|
item | System::SharedPtr<IMathElement> | The IMathElement to be added to the end of the collection. |
Remarks
Example:
auto mathBlock = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));
mathBlock->Add(System::MakeObject<MathematicalText>(u"+"));
mathBlock->Add(System::MakeObject<MathRadical>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"3")));
See Also
- Typedef SharedPtr
- Class IMathElement
- Class MathBlock
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides