RemoveAt()

MathBlock::RemoveAt(int32_t) method

Removes the element at the specified index of the collection.

void Aspose::Slides::MathText::MathBlock::RemoveAt(int32_t index) override

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index of the element to remove.

Remarks

Example:

auto mathBlock = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));
auto plusElement = System::MakeObject<MathematicalText>(u"+");
mathBlock->Add(plusElement);
mathBlock->Insert(0, System::MakeObject<MathRadical>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"3")));
mathBlock->RemoveAt(2);

See Also