RemoveAt

IMathElementCollection.RemoveAt 方法

移除集合中指定索引处的元素。

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

示例

示例:

[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")));
collection.RemoveAt(2);

参见