Insert
IMathElementCollection.Insert метод
Вставляет математический элемент в коллекцию по указанному индексу.
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")));
См. также
- интерфейс IMathElement
- интерфейс IMathElementCollection
- пространство имен Aspose.Slides.MathText
- сборка Aspose.Slides