SystemFonts.GetFontByName(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne un objet de police qui correspond au nom de police système spécifié.
public:
static System::Drawing::Font ^ GetFontByName(System::String ^ systemFontName);
public static System.Drawing.Font? GetFontByName(string systemFontName);
public static System.Drawing.Font GetFontByName(string systemFontName);
static member GetFontByName : string -> System.Drawing.Font
Public Shared Function GetFontByName (systemFontName As String) As Font
Paramètres
- systemFontName
- String
Nom de la police système pour laquelle vous avez besoin d’un objet de police.
Retours
A Font si le nom spécifié correspond à une valeur dans SystemFonts; sinon, null.
Remarques
La GetFontByName méthode retourne null si le nom spécifié ne correspond pas à une police dans l’énumération SystemFonts .