Langue

AxHost.GetFontFromIFontDisp(Object) Méthode

Définition

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

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

Paramètres

font
Object

IFontDisp à partir duquel créer un Font .

Retours

Créé Font à partir de l’IFontDisp 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