Contains()

IMathBlockCollection::Contains(System::SharedPtr<IMathBlock>) method

Determines whether the collection contains a specific value.

virtual bool Aspose::Slides::MathText::IMathBlockCollection::Contains(System::SharedPtr<IMathBlock> item)=0

Arguments

ParameterTypeDescription
itemSystem::SharedPtr<IMathBlock>The object to locate in the collection.

Return Value

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

Remarks

Example:

auto blockCollection = System::MakeObject<MathParagraph>();
auto block = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"y"));
blockCollection->Add(block);
bool contains = blockCollection->Contains(block);

See Also