Aspose::Pdf::Text::FontCollection::idx_get method

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

Gets font from the collection by font name. Exception is thrown if font was not found.

System::SharedPtr<Font> Aspose::Pdf::Text::FontCollection::idx_get(const System::String &name)
ParameterTypeDescription
nameconst System::String&Name of the font.

ReturnValue

Found font.

See Also

FontCollection::idx_get(int32_t) method

Gets the font element at the specified index.

System::SharedPtr<Font> Aspose::Pdf::Text::FontCollection::idx_get(int32_t index)
ParameterTypeDescription
indexint32_tIndex within the collection.

ReturnValue

Font object.

See Also