InputLanguageManager.CurrentInputLanguage 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 or sets the current input language.
public:
property System::Globalization::CultureInfo ^ CurrentInputLanguage { System::Globalization::CultureInfo ^ get(); void set(System::Globalization::CultureInfo ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.CultureInfoIetfLanguageTagConverter))]
public System.Globalization.CultureInfo CurrentInputLanguage { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.CultureInfoIetfLanguageTagConverter))>]
member this.CurrentInputLanguage : System.Globalization.CultureInfo with get, set
Public Property CurrentInputLanguage As CultureInfo
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();
InputLanguageManager.SetInputLanguage(tb1, CultureInfo.CreateSpecificCulture("fr"))
tb1.Text = "Current Input Language is " & InputLanguageManager.Current.CurrentInputLanguage.ToString()
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.