語言

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是 font 是null,或無法建立 IFont。

例外狀況

Unit財產價值則不是Point。

適用於

另請參閱