[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Drawing.Gdi.FontInfoExtensions.ValidateStyle

ValidateStyle Method

ValidateStyle(string, FontStyle)

Validates that the requested font style is available for the specified font family, falling back to an available style if needed.

Declaration
public static FontStyle ValidateStyle(string fontName, FontStyle fontStyle)
Parameters
Type Name Description
string fontName

The name of the font family to validate against.

FontStyle fontStyle

The desired FontStyle.

Returns
Type Description
FontStyle

The validated FontStyle, adjusted to an available style if the requested one is not supported.