Remove

MathParagraph.Remove method

Supprime la première occurrence d’un objet spécifique de la collection/>.

public bool Remove(IMathBlock mathBlock)
ParamètreTaperLa description
mathBlockIMathBlockObjet à supprimer de la collection.

Return_Value

vrai simathBlock a été supprimé avec succès de la collection ; sinon, faux. Cette méthode renvoie également false simathBlock est introuvable dans la collection d’origine/>.

Exemples

Exemple :

[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Add(new MathBlock(new MathematicalText("x")));
IMathBlock block = new MathBlock(new MathematicalText("y"));
mathParagraph.Add(block);
mathParagraph.Remove(block);

Voir également