[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Chart.Drawing.Font.-ctor

Font Constructor

Font(string, float)

Initializes a font with the given family name and em size, using a regular style measured in points.

Declaration
public Font(string familyName, float emSize)
Parameters
Type Name Description
string familyName

The name of the font family (for example, "Arial").

float emSize

The em size of the font, in points; must be greater than zero.

Font(string, float, FontStyle)

Initializes a font with the given family name, em size and style, measured in points.

Declaration
public Font(string familyName, float emSize, FontStyle style)
Parameters
Type Name Description
string familyName

The name of the font family (for example, "Arial").

float emSize

The em size of the font, in points; must be greater than zero.

FontStyle style

The combination of styles (bold, italic, and so on) to apply.

Font(string, float, GraphicsUnit)

Initializes a font with the given family name and em size, expressed in the specified unit, using a regular style.

Declaration
public Font(string familyName, float emSize, GraphicsUnit unit)
Parameters
Type Name Description
string familyName

The name of the font family (for example, "Arial").

float emSize

The em size of the font, expressed in unit; must be greater than zero.

GraphicsUnit unit

The unit of measure that emSize is expressed in.

Font(string, float, FontStyle, GraphicsUnit)

Initializes a font with the given family name, em size, style and unit of measure.

Declaration
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit)
Parameters
Type Name Description
string familyName

The name of the font family (for example, "Arial").

float emSize

The em size of the font, expressed in unit; must be greater than zero.

FontStyle style

The combination of styles (bold, italic, and so on) to apply.

GraphicsUnit unit

The unit of measure that emSize is expressed in.

Font(string, float, FontStyle, GraphicsUnit, byte, bool)

Initializes a font with full control over family name, size, style, unit and GDI character-set information.

Declaration
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
Parameters
Type Name Description
string familyName

The name of the font family (for example, "Arial").

float emSize

The em size of the font, expressed in unit; must be greater than zero.

FontStyle style

The combination of styles (bold, italic, and so on) to apply.

GraphicsUnit unit

The unit of measure that emSize is expressed in.

byte gdiCharSet

The GDI character set to use, as defined by the Windows LOGFONT structure.

bool gdiVerticalFont

true to select the vertical (top-to-bottom) variant of the font; otherwise, false.