RemoveAt()

IMathElementCollection::RemoveAt(int32_t) method

Removes the element at the specified index of the collection.

virtual void Aspose::Slides::MathText::IMathElementCollection::RemoveAt(int32_t index)=0

Arguments

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

Remarks

Example:

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

See Also