RemoveAt

MathParagraph.RemoveAt method

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

public void RemoveAt(int index)
范围类型描述
indexInt32要删除的项目的从零开始的索引。

例子

示例:

[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
IMathBlock block = new MathBlock(new MathematicalText("y"));
mathParagraph.Add(block);
mathParagraph.RemoveAt(0);

也可以看看