[]
        
(Showing Draft Content)

GrapeCity.Documents.Text.SystemFontCollection.FindFamilyName

FindFamilyName Method

FindFamilyName(string, bool, bool)

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

Declaration
public Font FindFamilyName(string fontFamilyName, bool bold = false, bool italic = false)
Public 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.

Implements

FindFamilyName(string[], bool, bool)

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

Declaration
public Font FindFamilyName(string[] fontFamilyNames, bool bold = false, bool italic = false)
Public 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.

Implements