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

适用于

另请参阅