Application.CurrentInputLanguage 屬性

定義

取得或設定目前執行緒的輸入語言。

public:
 static property System::Windows::Forms::InputLanguage ^ CurrentInputLanguage { System::Windows::Forms::InputLanguage ^ get(); void set(System::Windows::Forms::InputLanguage ^ value); };
public static System.Windows.Forms.InputLanguage CurrentInputLanguage { get; set; }
static member CurrentInputLanguage : System.Windows.Forms.InputLanguage with get, set
Public Shared Property CurrentInputLanguage As InputLanguage

屬性值

A InputLanguage 代表目前執行緒的輸入語言。

範例

以下範例取得此特性,並在文字框中顯示其值。 範例要求 已 textBox1 放在表格上。

private:
   void PrintCurrentInputLanguage()
   {
      textBox1->Text = "The current input language is: {0}",
         Application::CurrentInputLanguage->Culture->EnglishName;
   }
private void PrintCurrentInputLanguage() {
    textBox1.Text = "The current input language is: " +
       Application.CurrentInputLanguage.Culture.EnglishName;
 }
Private Sub PrintCurrentInputLanguage()
   textBox1.Text = "The current input language is: " & _
      Application.CurrentInputLanguage.Culture.EnglishName
End Sub

適用於

另請參閱