Clear()

IMathBlockCollection::Clear() method

Removes all elements from the collection.

virtual void Aspose::Slides::MathText::IMathBlockCollection::Clear()=0

Remarks

Example:

auto blockCollection = System::MakeObject<MathParagraph>();
blockCollection->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"block1")));
blockCollection->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"block2")));
blockCollection->Clear();

See Also