Remove()

IMathBlockCollection::Remove(System::SharedPtr<IMathBlock>) method

Removes the first occurrence of a specific object from the collection/>.

virtual bool Aspose::Slides::MathText::IMathBlockCollection::Remove(System::SharedPtr<IMathBlock> item)=0

Arguments

ParameterTypeDescription
itemSystem::SharedPtr<IMathBlock>The object to remove from the collection.

Return Value

true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the original collection/>.

Remarks

Example:

auto blockCollection = System::MakeObject<MathParagraph>();
auto block = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"y"));
blockCollection->Add(block);
blockCollection->Remove(block);

See Also