CopyTo
IMathElementCollection.CopyTo 方法
复制到指定数组。
public void CopyTo(IMathElement[] array, int arrayIndex)
参数 | 类型 | 描述 |
---|---|---|
array | IMathElement[] | 要复制到的数组。 |
arrayIndex | Int32 | 开始复制的索引。 |
示例
示例:
[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);