SystemFonts.GetFontByName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a font object that corresponds to the specified system font name.
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
Parameters
- systemFontName
- String
The name of the system font you need a font object for.
Returns
A Font if the specified name matches a value in SystemFonts; otherwise, null
.
Remarks
The GetFontByName method returns null
if the specified name does not match a font in the SystemFonts enumeration.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.