Langue

SystemFonts.GetFontByName(String) Méthode

Définition

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 .

S’applique à