Insert
MathBlock.Insert method
Inserts a MathElement 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 MathElement should be inserted. |
item | IMathElement | The MathElement to insert. |
Examples
Example:
[C#]
MathBlock mathBlock = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
mathBlock.Add(plusElement);
mathBlock.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
See Also
- interface IMathElement
- class MathBlock
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides