FontFamily Constructor (String^, FontCollection^)
.NET Framework (current version)
Initializes a new FontFamily in the specified FontCollection with the specified name.
Assembly: System.Drawing (in System.Drawing.dll)
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
Available since 1.1
Show: