Application.CurrentInputLanguage Propriété

Définition

Obtient ou définit la langue d’entrée actuelle pour le thread actuel.

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

Valeur de propriété

Représentant InputLanguage la langue d’entrée actuelle pour le thread actuel.

Exemples

L’exemple de code suivant obtient cette propriété et affiche sa valeur dans une zone de texte. L’exemple nécessite qu’il textBox1 ait été placé sur un formulaire.

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

S’applique à

Voir aussi