Поделиться через


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.

Возвращаемое значение

Массив всех доступных объектов FontFamily для заданного объекта Graphics.

Атрибуты

Исключения

graphics имеет значение null.

Применяется к