Insert

IMathElementCollection.Insert méthode

Insère un élément mathématique dans la collection à l’index spécifié.

public void Insert(int index, IMathElement item)
ParamètreTypeDescription
indexInt32L’index basé sur zéro auquel IMathElement doit être inséré.
itemIMathElementL’IMathElement à insérer.

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

Voir aussi