Font.FromLogFont 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定的 GDI 邏輯字型(Font)結構建立 。LOGFONT
多載
| 名稱 | Description |
|---|---|
| FromLogFont(LOGFONT, IntPtr) | |
| FromLogFont(Object, IntPtr) |
從指定的 GDI 邏輯字型(Font)結構建立 。 |
| FromLogFont(LOGFONT) | |
| FromLogFont(Object) |
從指定的 GDI 邏輯字型(Font)結構建立 。 |
FromLogFont(LOGFONT, IntPtr)
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- 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.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
從指定的 GDI 邏輯字型(Font)結構建立 。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
參數
- hdc
-
IntPtr
nativeint
一個裝置上下文的handle,包含關於結構的 lf 額外資訊。
傳回
這個 Font 方法所產生的。
例外狀況
這個字型不是 TrueType 字型。
備註
GDI LOGFONT或邏輯字型是一種包含 14 個屬性的結構,用以描述特定字型。
適用於
FromLogFont(LOGFONT)
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- 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.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
- 來源:
- Font.cs
從指定的 GDI 邏輯字型(Font)結構建立 。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
參數
傳回
這個 Font 方法所產生的。
備註
GDI LOGFONT或邏輯字型是一種包含 14 個屬性的結構,用以描述特定字型。