Langue

AxHost.GetFontFromIFont(Object) Méthode

Définition

Retourne une Font valeur créée à partir de l’objet OLE IFont spécifié.

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

Paramètres

font
Object

IFont à partir duquel créer un Font .

Retours

Créé Font à partir de l’IFont spécifié, DefaultFont si la police n’a pas pu être créée, ou null si c’est le cas fontnull.

S’applique à

Voir aussi