Share via


Application.CurrentInputLanguage Propriété

Définition

Obtient ou définit le langage d'entrée actuel du thread en cours.

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

Valeur de propriété

InputLanguage

InputLanguage représentant le langage d'entrée actuel du thread en cours.

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