Insert
IMathElementCollection.Insert method
Inserts a math element into the collection at the specified index.
public void Insert(int index, IMathElement item)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which IMathElement should be inserted. |
item | IMathElement | The IMathElement to insert. |
Examples
Example:
[C#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
collection.Add(plusElement);
collection.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
See Also
- interface IMathElement
- interface IMathElementCollection
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides