語言

AxHost.GetFontFromIFont(Object) 方法

定義

回傳由指定的 Font 物件所建立的 。

protected:
 static System::Drawing::Font ^ GetFontFromIFont(System::Object ^ font);
protected static System.Drawing.Font GetFontFromIFont(object font);
protected static System.Drawing.Font? GetFontFromIFont(object? font);
static member GetFontFromIFont : obj -> System.Drawing.Font
Protected Shared Function GetFontFromIFont (font As Object) As Font

參數

font
Object

IFont 來建立一個 Font from。

傳回

若字型無法建立,則Font由指定的 IFontDefaultFont 創建;若nullfont字型為 null。

適用於

另請參閱