InputLanguageManager.CurrentInputLanguage Property

Definition

Gets or sets the current input language.

[System.ComponentModel.TypeConverter(typeof(System.Windows.CultureInfoIetfLanguageTagConverter))]
public System.Globalization.CultureInfo CurrentInputLanguage { get; set; }

Property Value

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

Attributes

Exceptions

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

Examples

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();

Applies to

Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9