AxHost.GetFontFromIFontDisp(Object) Methode

Definition

Gibt einen aus dem angegebenen OLE-IFontDisp-Objekt erstellten Font zurück.

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

Parameter

font
Object

Das IFontDisp-Objekt, aus dem eine Font erstellt werden soll.

Gibt zurück

Font

Der aus dem angegebenen IFontDisp erstellte Font, DefaultFont, wenn die Schriftart nicht erstellt werden konnte, oder null, wenn font gleich null ist.

Gilt für

Siehe auch