Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / DocumentFontCollection Class / FindByName Method
The FontName to search for.
The DocumentFont.Bold value to search for.
The DocumentFont.Italic value to search for.

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

    Parameters

    fontName
    The FontName 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