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

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

InputLanguage.Culture プロパティ

現在の入力言語のカルチャを取得します

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

Dim instance As InputLanguage
Dim value As CultureInfo

value = instance.Culture
public CultureInfo Culture { get; }
public:
property CultureInfo^ Culture {
    CultureInfo^ get ();
}
/** @property */
public CultureInfo get_Culture ()

プロパティ
現在の入力言語のカルチャを表す CultureInfo。

使用例使用例

現在の入力言語の InputLanguage を取得するコード例次に示します。この入力言語入力言語の名前がテキスト ボックス表示されます。

このコードは、textBox1 が既にインスタンス化されていることを前提にしています。

Public Sub MyCulture()
   ' Gets the current input language.
   Dim myCurrentLanguage As InputLanguage =
 InputLanguage.CurrentInputLanguage
       
   ' Gets the culture for the language  and prints it.
   Dim myCultureInfo As CultureInfo = myCurrentLanguage.Culture
   textBox1.Text = myCultureInfo.EnglishName
End Sub

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

   // Gets the culture for the language  and prints it.
   CultureInfo myCultureInfo = myCurrentLanguage.Culture;
   textBox1.Text = myCultureInfo.EnglishName;
}

public:
   void MyCulture()
   {
      // Gets the current input language.
      InputLanguage^ myCurrentLanguage = InputLanguage::CurrentInputLanguage;
      
      // Gets the culture for the language  and prints it.
      CultureInfo^ myCultureInfo = myCurrentLanguage->Culture;
      textBox1->Text = myCultureInfo->EnglishName;
   }
public void MyCulture()
{
    // Gets the current input language.
    InputLanguage myCurrentLanguage =
        InputLanguage.get_CurrentInputLanguage();
    // Gets the culture for the language  and prints it.
    CultureInfo myCultureInfo = myCurrentLanguage.get_Culture();
    textBox1.set_Text(myCultureInfo.get_EnglishName());
} //MyCulture
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InputLanguage クラス
InputLanguage メンバ
System.Windows.Forms 名前空間
CultureInfo
InstalledInputLanguages



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

辞書ショートカット

すべての辞書の索引

「InputLanguage.Culture プロパティ」の関連用語

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

   

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



InputLanguage.Culture プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS