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

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

Syntax

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

Parameters

fontName
Type: System..::..String
The FontName 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