JoinBlock

MathBlock.JoinBlock method

连接另一个数学块

public IMathBlock JoinBlock(IMathBlock other)
范围类型描述
otherIMathBlock连接块

返回值

加入后的数学块

例子

示例:

[C#]
IMathBlock block1 = new MathSuperscriptElement(new MathematicalText("c"), new MathematicalText("2")).Join(new MathematicalText("="));
IMathBlock block2 = new MathSuperscriptElement(new MathematicalText("a"), new MathematicalText("2")).Join(new MathematicalText("+"))
.Join(new MathSuperscriptElement(new MathematicalText("b"), new MathematicalText("2")));
IMathBlock block3 = block1.JoinBlock(block2);

也可以看看