FontFamily Constructor (String)

 

Initializes a new FontFamily with the specified name.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public FontFamily(
	string name
)

Parameters

name
Type: System.String

The name of the new FontFamily.

Exception Condition
ArgumentException

name is an empty string ("").

-or-

name specifies a font that is not installed on the computer running the application.

-or-

name specifies a font that is not a TrueType font.

Passing empty string ("") for the name parameter causes an exception.

.NET Framework
Available since 1.1
Return to top
Show: