JoinBlock

MathBlock.JoinBlock method

Joins another mathematical block with this one

public IMathBlock JoinBlock(IMathBlock other)
ParameterTypeDescription
otherIMathBlockThe joining block

Return Value

this mathematical block after joining

Examples

Example:

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

See Also