CopyTo

MathBlock.CopyTo method

In angegebenes Array kopieren.

public void CopyTo(IMathElement[] array, int arrayIndex)
ParameterTypBeschreibung
arrayIMathElement[]Array, in das kopiert werden soll.
arrayIndexInt32Index, um mit dem Kopieren zu beginnen.

Beispiele

Beispiel:

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

Siehe auch