Font.ToLogFont 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从此 Font创建 GDI 逻辑字体 (LOGFONT
) 结构。
重载
ToLogFont(LOGFONT) | |
ToLogFont(Object) |
从此 Font创建 GDI 逻辑字体 ( |
ToLogFont(LOGFONT, Graphics) | |
ToLogFont(Object, Graphics) |
从此 Font创建 GDI 逻辑字体 ( |
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
参数设置为字体转换的结果。 有关逻辑字体的详细信息,请参阅 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)
参数
例外
graphics
为 null
。
注解
此方法将 logFont
参数设置为字体转换的结果。 有关逻辑字体的详细信息,请参阅 LOGFONT 结构。