InputLanguage.LayoutName プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > InputLanguage.LayoutName プロパティの意味・解説 

InputLanguage.LayoutName プロパティ

コンピュータのオペレーティング システムのカルチャに表示される、現在のキーボード レイアウトの名前を取得します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Dim instance As InputLanguage
Dim value As String

value = instance.LayoutName
public string LayoutName { get;
 }
public:
property String^ LayoutName {
    String^ get ();
}
/** @property */
public String get_LayoutName ()

プロパティ値
レイアウトの名前。

使用例使用例

現在の入力言語に関連付けられているカルチャを取得し、カルチャ名を表示するコード例を次に示します。

まず、現在の入力言語を取得するために CurrentInputLanguage を呼び出します。次に、取得した入力言語のカルチャ情報を取得するために Culture を呼び出します。最後に、EnglishName を取得してテキスト ボックスに表示します。

Public Sub MyLayoutName()
   ' Gets the current input language.
   Dim myCurrentLanguage As InputLanguage =
 InputLanguage.CurrentInputLanguage
       
   If Not (myCurrentLanguage Is
 Nothing) Then
      textBox1.Text = "Layout: " & myCurrentLanguage.LayoutName
   Else
      textBox1.Text = "There is no current language"
   End If
End Sub

public void MyLayoutName() {
   // Gets the current input language.
   InputLanguage myCurrentLanguage = InputLanguage.CurrentInputLanguage;

   if(myCurrentLanguage != null) 
      textBox1.Text = "Layout: " + myCurrentLanguage.LayoutName;
   else
      textBox1.Text = "There is no current language";
}

public:
   void MyLayoutName()
   {
      // Gets the current input language.
      InputLanguage^ myCurrentLanguage = InputLanguage::CurrentInputLanguage;

      if ( myCurrentLanguage != nullptr )
      {
         textBox1->Text = String::Format( "Layout: {0}", myCurrentLanguage->LayoutName
 );
      }
      else
      {
         textBox1->Text = "There is no current language";
      }
   }
public void MyLayoutName()
{
    // Gets the current input language.
    InputLanguage myCurrentLanguage =
        InputLanguage.get_CurrentInputLanguage();
    if (myCurrentLanguage != null) {
        textBox1.set_Text("Layout: " + myCurrentLanguage.get_LayoutName());
    }
    else {
        textBox1.set_Text("There is no current language");
    }
} //MyLayoutName 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InputLanguage クラス
InputLanguage メンバ
System.Windows.Forms 名前空間
InputLanguage.CurrentInputLanguage プロパティ



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

InputLanguage.LayoutName プロパティのお隣キーワード
検索ランキング

   

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



InputLanguage.LayoutName プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS