[]
        
(Showing Draft Content)

C1.C1Preview.DocumentFontCollection.FindByName

FindByName Method

FindByName(string, bool, bool)

Finds a font in the current collection with the specified values of FontName, Bold and Italic properties.

Declaration
public DocumentFont FindByName(string fontName, bool bold, bool italic)
Parameters
Type Name Description
string fontName

The FontName to search for.

bool bold

The Bold value to search for.

bool italic

The Italic value to search for.

Returns
Type Description
DocumentFont

The font with the specified properties, or null.