RemoveAt

IMathElementCollection.RemoveAt méthode

Supprime l’élément à l’index spécifié de la collection.

public void RemoveAt(int index)
ParamètreTypeDescription
indexInt32L’index basé sur zéro de l’élément à supprimer.

Exemples

Exemple:

[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);

Voir aussi