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ámetroTipoDescripción
indexInt32El índice basado en 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