Remove()
IMathElementCollection::Remove(System::SharedPtr<IMathElement>) method
Removes the first occurrence of a specific object from the collection.
virtual bool Aspose::Slides::MathText::IMathElementCollection::Remove(System::SharedPtr<IMathElement> item)=0
Arguments
Parameter | Type | Description |
---|---|---|
item | System::SharedPtr<IMathElement> | 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 collection = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));
auto plusElement = System::MakeObject<MathematicalText>(u"+");
collection->Add(plusElement);
collection->Add(System::MakeObject<MathRadical>(System::MakeObject<MathematicalText>(u"x"), System::MakeObject<MathematicalText>(u"3")));
collection->Remove(plusElement);
See Also
- Typedef SharedPtr
- Class IMathElement
- Class IMathElementCollection
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides