Font.FromLogFont 方法

定義

Font從指定的 GDI 邏輯字型 () LOGFONT 結構建立 。

多載

FromLogFont(LOGFONT, IntPtr)
FromLogFont(Object, IntPtr)

Font從指定的 GDI 邏輯字型 () LOGFONT 結構建立 。

FromLogFont(LOGFONT)
FromLogFont(Object)

Font從指定的 GDI 邏輯字型 () LOGFONT 結構建立 。

FromLogFont(LOGFONT, IntPtr)

來源:
Font.cs
來源:
Font.cs
public:
 static System::Drawing::Font ^ FromLogFont(System::Drawing::Interop::LOGFONT % logFont, IntPtr hdc);
public static System.Drawing.Font FromLogFont (in System.Drawing.Interop.LOGFONT logFont, IntPtr hdc);
static member FromLogFont : LOGFONT * nativeint -> System.Drawing.Font
Public Shared Function FromLogFont (ByRef logFont As LOGFONT, hdc As IntPtr) As Font

參數

logFont
LOGFONT
hdc
IntPtr

nativeint

傳回

適用於

FromLogFont(Object, IntPtr)

來源:
Font.cs
來源:
Font.cs
來源:
Font.cs

Font從指定的 GDI 邏輯字型 () LOGFONT 結構建立 。

public:
 static System::Drawing::Font ^ FromLogFont(System::Object ^ lf, IntPtr hdc);
public static System.Drawing.Font FromLogFont (object lf, IntPtr hdc);
static member FromLogFont : obj * nativeint -> System.Drawing.Font
Public Shared Function FromLogFont (lf As Object, hdc As IntPtr) As Font

參數

lf
Object

Object表示要從中建立的 FontGDI LOGFONT 結構。

hdc
IntPtr

nativeint

含有 lf 結構相關額外資訊的裝置內容控制代碼。

傳回

這個方法建立的 Font

例外狀況

字型不是 TrueType 字型。

備註

GDI LOGFONT或邏輯字型是結構,其中包含描述特定字型的14個屬性。

適用於

FromLogFont(LOGFONT)

來源:
Font.cs
來源:
Font.cs
public:
 static System::Drawing::Font ^ FromLogFont(System::Drawing::Interop::LOGFONT % logFont);
public static System.Drawing.Font FromLogFont (in System.Drawing.Interop.LOGFONT logFont);
static member FromLogFont : LOGFONT -> System.Drawing.Font
Public Shared Function FromLogFont (ByRef logFont As LOGFONT) As Font

參數

logFont
LOGFONT

傳回

適用於

FromLogFont(Object)

來源:
Font.cs
來源:
Font.cs
來源:
Font.cs

Font從指定的 GDI 邏輯字型 () LOGFONT 結構建立 。

public:
 static System::Drawing::Font ^ FromLogFont(System::Object ^ lf);
public static System.Drawing.Font FromLogFont (object lf);
static member FromLogFont : obj -> System.Drawing.Font
Public Shared Function FromLogFont (lf As Object) As Font

參數

lf
Object

Object表示要從中建立的 FontGDI LOGFONT 結構。

傳回

這個方法建立的 Font

備註

GDI LOGFONT或邏輯字型是結構,其中包含描述特定字型的14個屬性。

適用於