RemoveAt

MathBlock.RemoveAt 方法

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

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

示例

示例:

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

另请参阅