Aspose::Pdf::Text::FontCollection::Contains method

FontCollection::Contains(const System::SharedPtr<Font>&) const method

Determines whether the collection contains a specific value.

bool Aspose::Pdf::Text::FontCollection::Contains(const System::SharedPtr<Font> &item) const override
ParameterTypeDescription
itemconst System::SharedPtr<Font>&The object to locate in the collection

ReturnValue

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

See Also

FontCollection::Contains(const System::String&) const method

Checks if font exists in font collection.

bool Aspose::Pdf::Text::FontCollection::Contains(const System::String &name) const
ParameterTypeDescription
nameconst System::String&Font name.

ReturnValue

True in case collection contains the font with specified name.

See Also