Share via


AxHost.GetFontFromIFont(Object) 方法

定義

傳回從指定的 OLE IFont 物件所建立的 Font

protected:
 static System::Drawing::Font ^ GetFontFromIFont(System::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

用來建立 Font 的來源 IFont。

傳回

Font

從指定的 IFont 所建立的 Font,如果無法建立字型則為 DefaultFont如果 fontnull 則為 null

適用於

另請參閱