Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

AxHost.GetFontFromIFont Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft