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

也可以看看