Add

MathBlock.Add method

将数学元素添加到集合的末尾。

public void Add(IMathElement item)
范围类型描述
itemIMathElement要添加到集合末尾的 IMathElement。

例子

示例:

[C#]
MathBlock mathBlock = new MathBlock(new MathematicalText("x"));
mathBlock.Add(new MathematicalText("+"));
mathBlock.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));

也可以看看