RemoveAt

MathBlock.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#]
MathBlock mathBlock = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
mathBlock.Add(plusElement);
mathBlock.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
mathBlock.RemoveAt(2);

See Also