Insert

IMathElementCollection.Insert method

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

public void Insert(int index, IMathElement item)
ParamètreTaperLa description
indexInt32Index de base zéro auquel IMathElement doit être inséré.
itemIMathElementIMathElement à 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 également