Insert
MathBlock.Insert 方法
在指定索引处将 MathElement 插入集合。
public void Insert(int index, IMathElement item)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | MathElement 应插入的零基索引。 |
item | IMathElement | 要插入的 MathElement。 |
示例
示例:
[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")));
另请参阅
- 接口 IMathElement
- 类 MathBlock
- 命名空间 Aspose.Slides.MathText
- 程序集 Aspose.Slides