Constructor FontInfo
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
stringA string representation of the font family for the new FontInfo.
emSize
doubleThe em-size, in points.
style
FontStyleThe 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)
public FontInfo(Font font)
Parameters
font
Font