Table of Contents

Constructor FontInfo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

FontInfo(string, double, FontStyle)

Initializes a new FontInfo using a specified font familty name, size in points and style.

public FontInfo(string familyName, double emSize, FontStyle style = FontStyle.Regular)

Parameters

familyName string

A string representation of the font family for the new FontInfo.

emSize double

The em-size, in points.

style FontStyle

The FontStyle of the new font info.

Exceptions

ArgumentException

emSize is less than or equal to 0, evaluates to infinity or is not a valid number.

FontInfo()

Initializes a new instance of the FontInfo struct.

public FontInfo()

FontInfo(Font)

Creates FontInfo instance using Font properties.

public FontInfo(Font font)

Parameters

font Font