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

ParameterTypeDescription
itemSystem::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