语言

Font.FromLogFont 方法

定义

从指定的 GDI 逻辑字体 (Font) 结构创建一个LOGFONT。

重载

名称 说明
FromLogFont(LOGFONT, IntPtr)
FromLogFont(Object, IntPtr)

从指定的 GDI 逻辑字体 (Font) 结构创建一个LOGFONT。

FromLogFont(LOGFONT)
FromLogFont(Object)

从指定的 GDI 逻辑字体 (Font) 结构创建一个LOGFONT。

FromLogFont(LOGFONT, IntPtr)

Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
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)

Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
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

参数

lf
Object

一个Object表示要从中创建的 LOGFONTGDI Font 结构。

hdc
IntPtr

nativeint

包含有关结构的其他信息的设备上下文的 lf 句柄。

返回

Font此方法创建的。

例外

字体不是 TrueType 字体。

注解

GDI LOGFONT或逻辑字体是包含描述特定字体的 14 个属性的结构。

适用于

FromLogFont(LOGFONT)

Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
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)

Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
Font.cs
Source:
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

参数

lf
Object

一个Object表示要从中创建的 LOGFONTGDI Font 结构。

返回

Font此方法创建的。

注解

GDI LOGFONT或逻辑字体是包含描述特定字体的 14 个属性的结构。

适用于