Share via


AxHost.GetFontFromIFontDisp(Object) 方法

定義

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

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

參數

font
Object

用來建立 Font 的來源 IFontDisp。

傳回

Font

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

適用於

另請參閱