Font.ToLogFont 方法

定义

从此 Font创建 GDI 逻辑字体 (LOGFONT) 结构。

重载

ToLogFont(LOGFONT)
ToLogFont(Object)

从此 Font创建 GDI 逻辑字体 (LOGFONT) 结构。

ToLogFont(LOGFONT, Graphics)
ToLogFont(Object, Graphics)

从此 Font创建 GDI 逻辑字体 (LOGFONT) 结构。

ToLogFont(LOGFONT)

Source:
Font.cs
Source:
Font.cs
public:
 void ToLogFont([Runtime::InteropServices::Out] System::Drawing::Interop::LOGFONT % logFont);
public void ToLogFont (out System.Drawing.Interop.LOGFONT logFont);
member this.ToLogFont : LOGFONT -> unit
Public Sub ToLogFont (ByRef logFont As LOGFONT)

参数

logFont
LOGFONT

适用于

ToLogFont(Object)

Source:
Font.cs
Source:
Font.cs
Source:
Font.cs

从此 Font创建 GDI 逻辑字体 (LOGFONT) 结构。

public:
 void ToLogFont(System::Object ^ logFont);
public void ToLogFont (object logFont);
member this.ToLogFont : obj -> unit
Public Sub ToLogFont (logFont As Object)

参数

logFont
Object

一个 Object,它表示此方法创建的 LOGFONT 结构。

注解

此方法将 logFont 参数设置为字体转换的结果。 有关逻辑字体的详细信息,请参阅 LOGFONT 结构

适用于

ToLogFont(LOGFONT, Graphics)

Source:
Font.cs
Source:
Font.cs
public:
 void ToLogFont([Runtime::InteropServices::Out] System::Drawing::Interop::LOGFONT % logFont, System::Drawing::Graphics ^ graphics);
public void ToLogFont (out System.Drawing.Interop.LOGFONT logFont, System.Drawing.Graphics graphics);
member this.ToLogFont : LOGFONT * System.Drawing.Graphics -> unit
Public Sub ToLogFont (ByRef logFont As LOGFONT, graphics As Graphics)

参数

logFont
LOGFONT
graphics
Graphics

适用于

ToLogFont(Object, Graphics)

Source:
Font.cs
Source:
Font.cs
Source:
Font.cs

从此 Font创建 GDI 逻辑字体 (LOGFONT) 结构。

public:
 void ToLogFont(System::Object ^ logFont, System::Drawing::Graphics ^ graphics);
public void ToLogFont (object logFont, System.Drawing.Graphics graphics);
member this.ToLogFont : obj * System.Drawing.Graphics -> unit
Public Sub ToLogFont (logFont As Object, graphics As Graphics)

参数

logFont
Object

一个 Object,它表示此方法创建的 LOGFONT 结构。

graphics
Graphics

一个 Graphics,它提供 LOGFONT 结构的其他信息。

例外

graphicsnull

注解

此方法将 logFont 参数设置为字体转换的结果。 有关逻辑字体的详细信息,请参阅 LOGFONT 结构

适用于