AxHost.GetIFontDispFromFont(Font) Méthode

Définition

Retourne un objet IFontDisp OLE créé à partir de l’objet Font spécifié.

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

Paramètres

font
Font

Police utilisée pour créer un objet IFontDisp.

Retours

Object

Objet IFontDisp créé à partir de la police spécifiée ou null si font est null.

Exceptions

La valeur de propriété Unit n'est pas Point.

S’applique à

Voir aussi