語言

AxHost.GetIFontDispFromFont(Font) 方法

定義

回傳由指定物件建立的 Font 物件。

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 物件由指定字型建立,若nullfont為 null。

例外狀況

Unit財產價值則不是Point。

適用於

另請參閱