Insert

MathParagraph.Insert method

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

public void Insert(int index, IMathBlock mathBlock)
ParamètreTaperLa description
indexInt32Index de base zéro auquel un élément doit être inséré.
mathBlockIMathBlockIMathBlock à 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 également