RemoveAt

IMathBlockCollection.RemoveAt 方法

删除集合中指定索引处的项。

public void RemoveAt(int index)
参数类型描述
indexInt32要删除的项的零基索引。

示例

示例:

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

另见