Returns a list of all installed input languages.
[Visual Basic] Public Shared Function GetInstalledInputLanguages() As InputLanguage _ () [C#] public static InputLanguage[] GetInstalledInputLanguages(); [C++] public: static InputLanguage* GetInstalledInputLanguages() []; [JScript] public static function GetInstalledInputLanguages() : InputLanguage ;
An array of InputLanguage objects that represent the input languages installed on the computer.
The following example retrieves all the input languages installed on the computer and displays their names. First, GetInstalledInputLanguages is called to get the installed languages. The list of language names is displayed in a text box.
This code assumes Button1 and TextBox1 have been instantiated.
[C#]
public void GetLanguages() { //Get the list of installed languages. InputLanguage[] myLanguages = InputLanguage.GetInstalledInputLanguages(); //Extract the culture from each language object and display it. for (int i=0; i<myLanguages.Length; i++) textBox1.Text += myLanguages[i].GetCulture().EnglishName + '\n'; }
InputLanguage Class | InputLanguage Members | System.WinForms Namespace | GetLayoutName