CopyTo

IMathElementCollection.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#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
collection.Add(plusElement);
collection.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
IMathElement[] destinationArray = new IMathElement[collection.Count];
collection.CopyTo(destinationArray, 0);

See Also