NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

InputLanguage.GetDefaultInputLanguage

Returns the default input language for the system.

[Visual Basic]
Public Shared Function GetDefaultInputLanguage() As InputLanguage
[C#]
public static InputLanguage GetDefaultInputLanguage();
[C++]
public: static InputLanguage* GetDefaultInputLanguage();
[JScript]
public static function GetDefaultInputLanguage() : InputLanguage;

Return Value

An InputLanguage representing the default input language for the system.

Example [C#]

The following example gets the default input language and prints its name in a text box. This code assumes Button1 and TextBox1 have been instantiated.

[C#]

public void MyDefaultInputLanguage() {
   //Get the default input language and print it in a text box.
   InputLanguage myDefaultLanguage = InputLanguage.GetDefaultInputLanguage();
   textBox1.Text = "Default input language is: " + myDefaultLanguage.GetCulture().EnglishName;
}

See Also

InputLanguage Class | InputLanguage Members | System.WinForms Namespace | GetCurrentInputLanguage | Equals | SetCurrentInputLanguage | GetLayoutName