Clear
MathParagraph.Clear method
从集合中删除所有元素。
public void Clear()
例子
示例:
[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Add(new MathBlock(new MathematicalText("block1")));
mathParagraph.Add(new MathBlock(new MathematicalText("block2")));
mathParagraph.Clear();
也可以看看
- class MathParagraph
- 命名空间 Aspose.Slides.MathText
- 部件 Aspose.Slides