AxHost.GetFontFromIFontDisp Method (Object)


Returns a Font created from the specified OLE IFontDisp object.

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

protected static Font GetFontFromIFontDisp(
	object font


Type: System.Object

The IFontDisp to create a Font from.

Return Value

Type: System.Drawing.Font

The Font created from the specified IFontDisp, Control.DefaultFont if the font could not be created, or null if font is null.

.NET Framework
Available since 1.1
Return to top