Contains

MathParagraph.Contains method

Détermine si la collection contient une valeur spécifique.

public bool Contains(IMathBlock mathBlock)
ParamètreTaperLa description
mathBlockIMathBlockObjet à localiser dans la collection.

Return_Value

vrai simathBlock se trouve dans la collection; sinon, faux.

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);
bool contains = mathParagraph.Contains(block);

Voir également