Add
IMathElementCollection.Add 方法
将数学元素添加到集合的末尾。
public void Add(IMathElement item)
参数 | 类型 | 描述 |
---|---|---|
item | IMathElement | 要添加到集合末尾的 IMathElement。 |
示例
示例:
[C#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
collection.Add(new MathematicalText("+"));
collection.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));