Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Language.CurrentInputMethodLanguageTag Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?