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