Export (0) Print
Expand All
Expand Minimize

AxHost.GetIFontDispFromFont Method

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.

ExceptionCondition
ArgumentException

The Unit property value is not Point.

.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