Insert

MathBlock.Insert méthode

Insère un MathElement dans la collection à l’index spécifié.

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

Exemples

Exemple:

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

Voir aussi