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