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 ではない。

適用対象

こちらもご覧ください