CopyTo

IMathElementCollection.CopyTo method

Копировать в указанный массив.

public void CopyTo(IMathElement[] array, int arrayIndex)
ПараметрТипОписание
arrayIMathElement[]Массив для копирования.
arrayIndexInt32Индекс для начала копирования.

Примеры

Пример:

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

Смотрите также