Insert

MathBlock.Insert method

Вставляет MathElement в коллекцию по указанному индексу.

public void Insert(int index, IMathElement item)
ПараметрТипОписание
indexInt32Отсчитываемый от нуля индекс, в который следует вставить MathElement.
itemIMathElementMathElement для вставки.

Примеры

Пример:

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

Смотрите также