FontFamily.GetName メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > FontFamily.GetName メソッドの意味・解説 

FontFamily.GetName メソッド

この FontFamily の名前を指定言語返します

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

public:
String^ GetName (
    int language
)

パラメータ

language

返される名前の言語

戻り値
この FontFamily の名前を指定言語で表す String

解説解説
使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub GetName_Example(ByVal
 e As PaintEventArgs)

    ' Create a FontFamily object.
    Dim myFontFamily As New
 FontFamily("Arial")

    ' Get the name of myFontFamily.
    Dim familyName As String
 = myFontFamily.GetName(0)

    ' Draw the name of the myFontFamily to the screen as a string.
    e.Graphics.DrawString("The family name is " &
 familyName, _
    New Font(myFontFamily, 16), Brushes.Black, New
 PointF(0, 0))
End Sub
public void GetName_Example(PaintEventArgs
 e)
{
    // Create a FontFamily object.
    FontFamily myFontFamily = new FontFamily("Arial");
             
    // Get the name of myFontFamily.
    string familyName = myFontFamily.GetName(0);
             
    // Draw the name of the myFontFamily to the screen as a string.
    e.Graphics.DrawString(
        "The family name is " + familyName,
        new Font(myFontFamily, 16),
        Brushes.Black,
        new PointF(0, 0));
}
public:
   void GetName_Example( PaintEventArgs^ e )
   {
      // Create a FontFamily object.
      FontFamily^ myFontFamily = gcnew FontFamily( "Arial" );

      // Get the name of myFontFamily.
      String^ familyName = myFontFamily->GetName( 0 );

      // Draw the name of the myFontFamily to the screen as a string.
      e->Graphics->DrawString( String::Format( "The family name is {0}",
 familyName ),
            gcnew System::Drawing::Font( myFontFamily,16 ), Brushes::Black, PointF(0,0)
 );
   }
public void GetName_Example(PaintEventArgs
 e)
{
    // Create a FontFamily object.
    FontFamily myFontFamily = new FontFamily("Arial");

    // Get the name of myFontFamily.
    String familyName = myFontFamily.GetName(0);

    // Draw the name of the myFontFamily to the screen as a string.
    e.get_Graphics().DrawString("The family name is " + familyName, 
        new Font(myFontFamily, 16), Brushes.get_Black(), 
        new PointF(0, 0));
} //GetName_Example
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からFontFamily.GetName メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からFontFamily.GetName メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からFontFamily.GetName メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

FontFamily.GetName メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FontFamily.GetName メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS