Contains

MathParagraph.Contains-Methode

Bestimmt, ob die Sammlung einen bestimmten Wert enthält.

public bool Contains(IMathBlock mathBlock)
ParameterTypBeschreibung
mathBlockIMathBlockDas Objekt, das in der Sammlung gefunden werden soll.

Rückgabewert

true, wenn mathBlock in der Sammlung gefunden wird; andernfalls false.

Beispiele

Beispiel:

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

Siehe auch