Language

SystemFonts.GetFontByName(String) メソッド

定義

指定したシステム フォント名に対応するフォント オブジェクトを返します。

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

パラメーター

systemFontName
String

フォント オブジェクトが必要なシステム フォントの名前。

返品

指定した名前が Font の値と一致する場合はSystemFonts。それ以外の場合はnull。

注釈

指定した名前がGetFontByName列挙体のフォントと一致しない場合、null メソッドはSystemFontsを返します。

適用対象