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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public DocumentFont FindByFamilyName(
	string familyName,
	bool bold,
	bool italic
)
Visual Basic
Public Function FindByFamilyName ( _
	familyName As String, _
	bold As Boolean, _
	italic As Boolean _
) As DocumentFont

Parameters

familyName
Type: System..::..String
The FontFamilyName to search for.
bold
Type: System..::..Boolean
The Bold value to search for.
italic
Type: System..::..Boolean
The Italic value to search for.

Return Value

The font with the specified properties, or null.

See Also