FontFamily.GetFamilies Method (Graphics)

 
obsoleteCodeEntityP:System.Drawing.FontFamily.FamiliesNote: This API is now obsolete.

Returns an array that contains all the FontFamily objects available for the specified graphics context.

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

[ObsoleteAttribute("Do not use method GetFamilies, use property Families instead")]
public static FontFamily[] GetFamilies(
	Graphics graphics
)

Parameters

graphics
Type: System.Drawing.Graphics

The Graphics object from which to return FontFamily objects.

Return Value

Type: 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
Return to top
Show: