共用方式為


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

Graphics 物件,從其中傳回 FontFamily 物件。

傳回

所指定 Graphics 物件可使用的 FontFamily 物件陣列。

屬性

例外狀況

graphicsnull

適用於