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