AxHost.GetFontFromIFont Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a Font created from the specified OLE IFont object.

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

protected static Font GetFontFromIFont(
	object font
)

Parameters

font
Type: System.Object

The IFont to create a Font from.

Return Value

Type: System.Drawing.Font

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

.NET Framework
Available since 1.1
Return to top
Show: