CopyTo

MathBlock.CopyTo méthode

Copier dans un tableau spécifié.

public void CopyTo(IMathElement[] array, int arrayIndex)
ParamètreTypeDescription
arrayIMathElement[]Tableau dans lequel copier.
arrayIndexInt32Index à partir duquel commencer à copier.

Exemples

Exemple:

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

Voir Aussi