CopyTo
IMathElementCollection.CopyTo method
Copy to specified array.
public void CopyTo(IMathElement[] array, int arrayIndex)
Parameter | Type | Description |
---|---|---|
array | IMathElement[] | Array to copy to. |
arrayIndex | Int32 | Index to begin copying. |
Examples
Example:
[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);
See Also
- interface IMathElement
- interface IMathElementCollection
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides