AxHost.GetIFontDispFromFont(Font) Methode

Definition

Gibt ein aus dem angegebenen Font-Objekt erstelltes OLE-IFontDisp-Objekt zurück.

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

Parameter

font
Font

Die Schriftart, aus der ein IFontDisp-Objekt erstellt werden soll.

Gibt zurück

Object

Das IFontDisp-Objekt, das aus der angegebenen Schriftart erstellt wurde, oder null, wenn font den Wert null aufweist.

Ausnahmen

Der Unit-Eigenschaftswert lautet nicht Point.

Gilt für

Siehe auch