Insert

IMathElementCollection.Insert method

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

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

Примеры

Пример:

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

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