AxHost.GetIFontFromFont(Font) Methode

Definition

Gibt ein OLE IFont -Objekt zurück, das aus dem angegebenen Font Objekt erstellt wurde.

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

Parameter

font
Font

Die Schriftart zum Erstellen eines IFont-Objekts aus.

Gibt zurück

Das aus der angegebenen Schriftart erstellte IFont-Objekt oder null wenn font das nullIFont-Objekt nicht erstellt werden konnte.

Ausnahmen

Der Unit Eigenschaftswert ist nicht Point.

Gilt für:

Weitere Informationen