Insert

MathParagraph.Insert method

Inserts IMathBlock into the collection at the specified index.

public void Insert(int index, IMathBlock mathBlock)
ParameterTypeDescription
indexInt32The zero-based index at which an item should be inserted.
mathBlockIMathBlockThe 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