FontFamily.GetFamilies(Graphics) 方法

定义

注意

Do not use method GetFamilies, use property Families instead

注意

FontFamily.GetFamilies has been deprecated. Use Families instead.

返回一个数组,该数组包含指定的图形上下文可用的所有 FontFamily 对象。

public:
 static cli::array <System::Drawing::FontFamily ^> ^ GetFamilies(System::Drawing::Graphics ^ graphics);
[System.Obsolete("Do not use method GetFamilies, use property Families instead")]
public static System.Drawing.FontFamily[] GetFamilies (System.Drawing.Graphics graphics);
[System.Obsolete("FontFamily.GetFamilies has been deprecated. Use Families instead.")]
public static System.Drawing.FontFamily[] GetFamilies (System.Drawing.Graphics graphics);
public static System.Drawing.FontFamily[] GetFamilies (System.Drawing.Graphics graphics);
[<System.Obsolete("Do not use method GetFamilies, use property Families instead")>]
static member GetFamilies : System.Drawing.Graphics -> System.Drawing.FontFamily[]
[<System.Obsolete("FontFamily.GetFamilies has been deprecated. Use Families instead.")>]
static member GetFamilies : System.Drawing.Graphics -> System.Drawing.FontFamily[]
static member GetFamilies : System.Drawing.Graphics -> System.Drawing.FontFamily[]
Public Shared Function GetFamilies (graphics As Graphics) As FontFamily()

参数

graphics
Graphics

从其返回 FontFamily 对象的 Graphics 对象。

返回

指定的 Graphics 对象可用的 FontFamily 对象的数组。

属性

例外

graphicsnull

适用于