InputLanguage.InstalledInputLanguages Property

Definition

Gets a list of all installed input languages.

public static System.Windows.Forms.InputLanguageCollection InstalledInputLanguages { get; }

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.
   foreach(InputLanguage lang in InputLanguage.InstalledInputLanguages) {
      textBox1.Text += lang.Culture.EnglishName + '\n';
   }
}

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also