RemoveAt

MathParagraph.RemoveAt 方法

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

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);

另见