InputLanguageManager.CurrentInputLanguage Property

Gets or sets the current input language.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public CultureInfo CurrentInputLanguage { get; set; }

Property Value

Type: System.Globalization.CultureInfo
A CultureInfo object representing the currently selected input language. This property may not be set to null.
The default value is InvariantCulture.


Raised when an attempt is made to set this property to null.

The following example demonstrates how to use an InputLanguageManager to get the current input language.

InputLanguageManager.SetInputLanguage(tb1, CultureInfo.CreateSpecificCulture("fr"));
tb1.Text = "Current Input Language is " + InputLanguageManager.Current.CurrentInputLanguage.ToString();

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft