AxHost::GetIFontFromFont Method (Font^)

 

Returns an OLE IFont object created from the specified Font object.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
static Object^ GetIFontFromFont(
	Font^ font
)

Parameters

font
Type: System.Drawing::Font^

The font to create an IFont object from.

Return Value

Type: System::Object^

The IFont object created from the specified font, or null if font is null or the IFont could not be created.

Exception Condition
ArgumentException

The Unit property value is not Point.

.NET Framework
Available since 1.1
Return to top
Show: