Edit

Share via


InputLanguage.InstalledInputLanguages Property

Definition

Gets a list of all installed input languages.

public:
 static property System::Windows::Forms::InputLanguageCollection ^ InstalledInputLanguages { System::Windows::Forms::InputLanguageCollection ^ get(); };
public static System.Windows.Forms.InputLanguageCollection InstalledInputLanguages { get; }
static member InstalledInputLanguages : System.Windows.Forms.InputLanguageCollection
Public Shared ReadOnly Property InstalledInputLanguages As InputLanguageCollection

Property Value

An array of InputLanguage objects that represent the input languages installed on the computer.

Examples

The following code example retrieves all the input languages installed on the computer and displays their names. The code calls InstalledInputLanguages to get the installed languages. A text box displays the list of language names.

This code assumes that textBox1 has been instantiated and that textBox1.MultiLine has been set to true.

public:
   void GetLanguages()
   {
      // Gets the list of installed languages.
      for each ( InputLanguage^ lang in InputLanguage::InstalledInputLanguages )
      {
         textBox1->Text = String::Concat( textBox1->Text, lang->Culture->EnglishName, "\n" );
      }
   }
public void GetLanguages() {
   // Gets the list of installed languages.
   foreach(InputLanguage lang in InputLanguage.InstalledInputLanguages) {
      textBox1.Text += lang.Culture.EnglishName + '\n';
   }
}
Public Sub GetLanguages()
   ' Gets the list of installed languages.
   Dim lang As InputLanguage
   For Each lang In  InputLanguage.InstalledInputLanguages
      textBox1.Text &= lang.Culture.EnglishName & ControlChars.Cr
   Next lang
End Sub

Applies to

See also