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
Parameter | Type | Description |
---|---|---|
item | System::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
- Typedef SharedPtr
- Class IMathBlock
- Class IMathBlockCollection
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides