语言

AxHost.GetIFontFromFont(Font) 方法

定义

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

protected:
 static System::Object ^ GetIFontFromFont(System::Drawing::Font ^ font);
protected static 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 对象的字体。

返回

从指定字体创建的 IFont 对象,或者null无法fontnull创建 IFont。

例外

属性值 Unit 不是 Point。

适用于

另请参阅