AxHost.GetIFontFromFont(Font) Méthode

Définition

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

protected:
 static System::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

Paramètres

font
Font

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

Retours

Object

Objet IFont créé à partir de la police spécifiée, ou null si font est null ou que l’IFont n’a pas pu être créé.

Exceptions

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

S’applique à

Voir aussi