AxHost.GetIFontDispFromFont(Font) 方法

定義

傳回從指定的 Font 物件所建立的 OLE IFontDisp 物件。

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

參數

font
Font

建立 IFontDisp 物件的來源字型。

傳回

從指定的字型所建立的 IFontDisp 物件,如果 fontnull 則為 null

例外狀況

Unit 屬性值不是 Point

適用於

另請參閱