[]
        
(Showing Draft Content)

C1.Report.FontDataCollection.FindFont

FindFont Method

FindFont(string, bool, bool)

Gets a section from a font data collection by the font name and characteristics.

Declaration
public FontData FindFont(string fontName, bool bold, bool italic)
Public Function FindFont(fontName As String, bold As Boolean, italic As Boolean) As FontData
Parameters
Type Name Description
string fontName

The font name.

bool bold

The bold font characteristic.

bool italic

The italic font characteristic.

Returns
Type Description
FontData

Returns null if section not found.

FindFont(Font, bool)

Gets a section from a font data collection by the font.

Declaration
[CLSCompliant(false)]
public FontData FindFont(Font font, bool strictly = false)
<CLSCompliant(False)>
Public Function FindFont(font As Font, Optional strictly As Boolean = False) As FontData
Parameters
Type Name Description
Font font

The font object.

bool strictly

Whether strictly compare or no.

Returns
Type Description
FontData

Returns null if section not found.