Insert
MathParagraph.Insert method
Inserts IMathBlock into the collection at the specified index.
public void Insert(int index, IMathBlock mathBlock)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which an item should be inserted. |
mathBlock | IMathBlock | The IMathBlock to insert. |
Examples
Example:
[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
IMathBlock block = new MathBlock(new MathematicalText("y"));
mathParagraph.Insert(0, block);
See Also
- interface IMathBlock
- class MathParagraph
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides