[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.IFontCollection.FindFamilyName

FindFamilyName Method

FindFamilyName(string, bool, bool)

Searches for a font with the specified family name and style.

Declaration
Font FindFamilyName(string fontFamilyName, bool bold = false, bool italic = false)
Function FindFamilyName(fontFamilyName As String, Optional bold As Boolean = False, Optional italic As Boolean = False) As Font
Parameters
Type Name Description
string fontFamilyName

The font family name. Up to four fonts can share the same font family name.

bool bold

Indicates if the font should be embolded.

bool italic

Indicates if the font should contain Italic characters.

Returns
Type Description
Font

The corresponding Font or null.

FindFamilyName(string[], bool, bool)

Searches for a font from the set of allowable font family names and the specified style.

Declaration
Font FindFamilyName(string[] fontFamilyNames, bool bold = false, bool italic = false)
Function FindFamilyName(fontFamilyNames As String(), Optional bold As Boolean = False, Optional italic As Boolean = False) As Font
Parameters
Type Name Description
string[] fontFamilyNames

The array of allowable font family name.

bool bold

Indicates if the font should be embolded.

bool italic

Indicates if the font should contain Italic characters.

Returns
Type Description
Font

The corresponding Font or null.