AxHost.GetIFontDispFromFont(Font) AxHost.GetIFontDispFromFont(Font) AxHost.GetIFontDispFromFont(Font) Method

定义

返回从指定的 Font 对象创建的 OLE IFontDisp 对象。Returns an OLE IFontDisp object created from the specified Font object.

protected:
 static System::Object ^ GetIFontDispFromFont(System::Drawing::Font ^ font);
protected static object GetIFontDispFromFont (System.Drawing.Font font);
static member GetIFontDispFromFont : System.Drawing.Font -> obj

参数

font
Font Font Font

要从其创建 IFontDisp 对象的字体。The font to create an IFontDisp object from.

返回

从指定字体创建的 IFontDisp 对象;如果 fontnull,则为 nullThe IFontDisp object created from the specified font or null if font is null.

异常

Unit 属性值不为 PointThe Unit property value is not Point.

适用于

另请参阅