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

适用于

另请参阅