Application.CurrentInputLanguage Proprietà

Definizione

Ottiene o imposta il linguaggio di input corrente per il thread in esecuzione.

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; }
member this.CurrentInputLanguage : System.Windows.Forms.InputLanguage with get, set
Public Shared Property CurrentInputLanguage As InputLanguage

Valore della proprietà

InputLanguage

Oggetto InputLanguage che rappresenta il linguaggio di input corrente per il thread in esecuzione.

Esempio

L'esempio di codice seguente ottiene questa proprietà e ne visualizza il valore in una casella di testo. L'esempio richiede che textBox1 sia stato inserito in un modulo.

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

Si applica a

Vedi anche