FontFamily Constructor (String^, FontCollection^)

 

Initializes a new FontFamily in the specified FontCollection with the specified name.

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

public:
FontFamily(
	String^ name,
	FontCollection^ fontCollection
)

Parameters

name
Type: System::String^

A String that represents the name of the new FontFamily.

fontCollection
Type: System.Drawing.Text::FontCollection^

The FontCollection that contains this 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.

.NET Framework
Available since 1.1
Return to top
Show: