AxHost.GetIFontFromFont(Font) 方法

定义

返回从指定的 Font 对象创建的 OLE IFont 对象。

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

参数

font
Font

要从其创建 IFont 对象的字体。

返回

Object

从指定字体创建的 IFont 对象;如果 fontnull,则为 null;或无法创建 IFont 对象。

例外

Unit 属性值不为 Point

适用于

另请参阅