AxHost.GetIFontFromFont Method (Font)

 
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 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: