Font.ToLogFont Font.ToLogFont Font.ToLogFont Font.ToLogFont Method

定義

從這個 Font 建立 GDI 邏輯字型 (LOGFONT) 結構。Creates a GDI logical font (LOGFONT) structure from this Font.

多載

ToLogFont(Object) ToLogFont(Object) ToLogFont(Object) ToLogFont(Object)

從這個 Font 建立 GDI 邏輯字型 (LOGFONT) 結構。Creates a GDI logical font (LOGFONT) structure from this Font.

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

從這個 Font 建立 GDI 邏輯字型 (LOGFONT) 結構。Creates a GDI logical font (LOGFONT) structure from this Font.

ToLogFont(Object) ToLogFont(Object) ToLogFont(Object) ToLogFont(Object)

從這個 Font 建立 GDI 邏輯字型 (LOGFONT) 結構。Creates a GDI logical font (LOGFONT) structure from this Font.

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 Object Object

Object,表示這個方法所建立的 LOGFONT 結構。An Object to represent the LOGFONT structure that this method creates.

備註

這個方法會將logFont參數設定為字型轉換的結果。This method sets the logFont parameter to the results of the font conversion. 如需邏輯字型的詳細資訊, 請參閱LOGFONT 結構For more information about logical fonts, see LOGFONT structure.

安全性

SecurityPermission
用於存取未受管理的程式碼。for access to unmanaged code. 相關列舉:UnmanagedCodeRelated enumeration: UnmanagedCode

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

從這個 Font 建立 GDI 邏輯字型 (LOGFONT) 結構。Creates a GDI logical font (LOGFONT) structure from this Font.

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

參數

logFont
Object Object Object Object

Object,表示這個方法所建立的 LOGFONT 結構。An Object to represent the LOGFONT structure that this method creates.

graphics
Graphics Graphics Graphics Graphics

Graphics,提供 LOGFONT 結構的額外資訊。A Graphics that provides additional information for the LOGFONT structure.

例外狀況

備註

這個方法會將logFont參數設定為字型轉換的結果。This method sets the logFont parameter to the results of the font conversion. 如需邏輯字型的詳細資訊, 請參閱LOGFONT 結構For more information about logical fonts, see LOGFONT structure.

安全性

SecurityPermission
用於存取未受管理的程式碼。for access to unmanaged code. 相關列舉:UnmanagedCodeRelated enumeration: UnmanagedCode

適用於