Contains

IMathBlockCollection.Contains method

Determines whether the collection contains a specific value.

public bool Contains(IMathBlock item)
ParameterTypeDescription
itemIMathBlockThe object to locate in the collection.

Return Value

true if item is found in the collection; otherwise, false.

Examples

Example:

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

See Also