RemoveAt

MathParagraph.RemoveAt méthode

Supprime un élément à l’index spécifié de la collection.

public void RemoveAt(int index)
ParamètreTypeDescription
indexInt32L’index basé sur zéro de l’élément à supprimer.

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.Add(block);
mathParagraph.RemoveAt(0);

Voir aussi