Insert

IMathBlockCollection.Insert 方法

在指定索引处将 IMathBlock 插入到集合中。

public void Insert(int index, IMathBlock item)
参数类型描述
indexInt32应该插入项的零基索引。
itemIMathBlock要插入的 IMathBlock。

示例

示例:

[C#]
IMathBlockCollection blockCollection = new MathParagraph();
IMathBlock block = new MathBlock(new MathematicalText("y"));
blockCollection.Insert(0, block);

另请参阅