CopyTo

IMathElementCollection.CopyTo method

Copiar a la matriz especificada.

public void CopyTo(IMathElement[] array, int arrayIndex)
ParámetroEscribeDescripción
arrayIMathElement[]Matriz a la que copiar.
arrayIndexInt32Índice para comenzar a copiar.

Ejemplos

Ejemplo:

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

Ver también