CopyTo

MathBlock.CopyTo method

Copy to specified array.

public void CopyTo(IMathElement[] array, int arrayIndex)
ParameterTypeDescription
arrayIMathElement[]Array to copy to.
arrayIndexInt32Index to begin copying.

Examples

Example:

[C#]
MathBlock mathBlock = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
mathBlock.Add(plusElement);
mathBlock.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
IMathElement[] destinationArray = new IMathElement[mathBlock.Count];
mathBlock.CopyTo(destinationArray, 0);

See Also