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

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