Language.CurrentInputMethodLanguageTag Property


Gets the BCP-47 language tag for the currently enabled keyboard layout or Input Method Editor (IME).

 static property Platform::String ^ CurrentInputMethodLanguageTag { Platform::String ^ get(); };
static winrt::hstring CurrentInputMethodLanguageTag();
public static string CurrentInputMethodLanguageTag { get; }
var string = Language.currentInputMethodLanguageTag;
Public Shared ReadOnly Property CurrentInputMethodLanguageTag As String

Property Value


The BCP-47 language tag.


This property returns a value for the currently active input method on the thread with keyboard input focus. Calling this on a background thread may not return the expected results.

Applies to

See also