Insert

MathBlock.Insert method

Inserta un MathElement 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 MathElement.
itemIMathElementEl MathElement a insertar.

Ejemplos

Ejemplo:

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

Ver también