AxHost::GetIFontDispFromFont Method (Font^)

 

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

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

protected:
static Object^ GetIFontDispFromFont(
	Font^ font
)

Parameters

font
Type: System.Drawing::Font^

The font to create an IFontDisp object from.

Return Value

Type: System::Object^

The IFontDisp object created from the specified font or null if font is null.

Exception Condition
ArgumentException

The Unit property value is not Point.

.NET Framework
Available since 1.1
Return to top
Show: