Insert

IMathElementCollection.Insert method

Inserta un elemento matemático en la colección en el índice especificado.

public void Insert(int index, IMathElement item)
ParámetroEscribeDescripción
indexInt32El índice de base cero en el que se debe insertar IMathElement.
itemIMathElementEl IMathElement a insertar.

Ejemplos

Ejemplo:

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

Ver también