RemoveAt

IMathElementCollection.RemoveAt method

Removes the element at the specified index of the collection.

public void RemoveAt(int index)
ParameterTypeDescription
indexInt32The zero-based index of the element to remove.

Examples

Example:

[C#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
collection.Add(plusElement);
collection.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
collection.RemoveAt(2);

See Also