Insert

MathParagraph.Insert-Methode

Fügt IMathBlock in die Sammlung am angegebenen Index ein.

public void Insert(int index, IMathBlock mathBlock)
ParameterTypBeschreibung
indexInt32Der Null-basierte Index, an dem ein Element eingefügt werden soll.
mathBlockIMathBlockDer einzufügende IMathBlock.

Beispiele

Beispiel:

[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);

Siehe auch