Insert
IMathElementCollection.Insert method
Вставляет математический элемент в коллекцию по указанному индексу.
public void Insert(int index, IMathElement item)
Параметр | Тип | Описание |
---|---|---|
index | Int32 | Отсчитываемый от нуля индекс, в который следует вставить IMathElement. |
item | IMathElement | IMathElement для вставки. |
Примеры
Пример:
[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")));
Смотрите также
- interface IMathElement
- interface IMathElementCollection
- пространство имен Aspose.Slides.MathText
- сборка Aspose.Slides