FontFamily::GetFamilies Method (Graphics^)
.NET Framework (current version)
Returns an array that contains all the FontFamily objects available for the specified graphics context.
Assembly: System.Drawing (in System.Drawing.dll)
public: [ObsoleteAttribute("Do not use method GetFamilies, use property Families instead")] static array<FontFamily^>^ GetFamilies( Graphics^ graphics )
Parameters
- graphics
-
Type:
System.Drawing::Graphics^
The Graphics object from which to return FontFamily objects.
Return Value
Type: array<System.Drawing::FontFamily^>^An array of FontFamily objects available for the specified Graphics object.
| Exception | Condition |
|---|---|
| ArgumentNullException | graphics is null. |
.NET Framework
Available since 1.1
Available since 1.1
Show: