PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / DocumentFontCollection Class / FindByFamilyName Method
The DocumentFont.FontFamilyName to search for.
The DocumentFont.Bold value to search for.
The DocumentFont.Italic value to search for.

In This Topic
    FindByFamilyName Method
    In This Topic
    Finds a font in the current collection with the specified values of DocumentFont.FontFamilyName, DocumentFont.Bold and DocumentFont.Italic properties.
    Syntax
    'Declaration
     
    Public Function FindByFamilyName( _
       ByVal fontFamilyName As String, _
       ByVal bold As Boolean, _
       ByVal italic As Boolean _
    ) As DocumentFont
    public DocumentFont FindByFamilyName( 
       string fontFamilyName,
       bool bold,
       bool italic
    )

    Parameters

    fontFamilyName
    The DocumentFont.FontFamilyName to search for.
    bold
    The DocumentFont.Bold value to search for.
    italic
    The DocumentFont.Italic value to search for.

    Return Value

    The font with the specified properties, or null.
    See Also