Language.CurrentInputMethodLanguageTag Property

Definition

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

public:
 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

String

Platform::String

winrt::hstring

The BCP-47 language tag.

Remarks

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