Contains

IMathBlockCollection.Contains Methode

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

public bool Contains(IMathBlock item)
ParameterTypBeschreibung
itemIMathBlockDas Objekt, das in der Sammlung gesucht werden soll.

Rückgabewert

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

Beispiele

Beispiel:

[C#]
IMathBlockCollection blockCollection = new MathParagraph();
IMathBlock block = new MathBlock(new MathematicalText("y"));
blockCollection.Add(block);
bool contains = blockCollection.Contains(block);

Siehe Auch