JoinBlock

MathBlock.JoinBlock 方法

将另一个数学块与此块连接

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);

参见