Remove
MathBlock.Remove method
Removes the first occurrence of a specific object from the collection.
public bool Remove(IMathElement item)
Parameter | Type | Description |
---|---|---|
item | 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.
Examples
Example:
[C#]
MathBlock mathBlock = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
mathBlock.Add(plusElement);
mathBlock.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
mathBlock.Remove(plusElement);
See Also
- interface IMathElement
- class MathBlock
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides