Bewerken

Delen via


AxHost.GetFontFromIFont(Object) Method

Definition

Returns a Font created from the specified OLE IFont object.

protected:
 static System::Drawing::Font ^ GetFontFromIFont(System::Object ^ font);
protected static System.Drawing.Font GetFontFromIFont (object font);
protected static System.Drawing.Font? GetFontFromIFont (object? font);
static member GetFontFromIFont : obj -> System.Drawing.Font
Protected Shared Function GetFontFromIFont (font As Object) As Font

Parameters

font
Object

The IFont to create a Font from.

Returns

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

Applies to

See also