Insert
IMathBlockCollection.Insert 方法
在指定索引处将 IMathBlock 插入到集合中。
public void Insert(int index, IMathBlock item)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | 应该插入项的零基索引。 |
item | IMathBlock | 要插入的 IMathBlock。 |
示例
示例:
[C#]
IMathBlockCollection blockCollection = new MathParagraph();
IMathBlock block = new MathBlock(new MathematicalText("y"));
blockCollection.Insert(0, block);