Insert

MathParagraph.Insert méthode

Insère IMathBlock dans la collection à l’index spécifié.

public void Insert(int index, IMathBlock mathBlock)
ParamètreTypeDescription
indexInt32L’index basé sur zéro où un élément doit être inséré.
mathBlockIMathBlockL’IMathBlock à insérer.

Exemples

Exemple :

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

Voir aussi