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 或無法建立 IFont,則為 null

例外狀況

Unit 屬性值不是 Point

適用於

另請參閱