Insert

MathBlock.Insert method

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

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