Clear

IMathBlockCollection.Clear method

从集合中删除所有元素。

public void Clear()

例子

示例:

[C#]
IMathBlockCollection blockCollection = new MathParagraph();
blockCollection.Add(new MathBlock(new MathematicalText("block1")));
blockCollection.Add(new MathBlock(new MathematicalText("block2")));
blockCollection.Clear();

也可以看看