语言

AxHost.GetFontFromIFont(Object) 方法

定义

返回从指定的 OLE 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

要从中创建 Font 的 IFont。

返回

Font从指定的 IFont 创建,DefaultFont如果无法创建字体,或者null如果font为 null。

适用于

另请参阅