InputLanguageManager::GetInputLanguage Method (DependencyObject^)
.NET Framework (current version)
Returns the value of the InputLanguage attached property for a specified dependency object.
Assembly: PresentationCore (in PresentationCore.dll)
public: [AttachedPropertyBrowsableForTypeAttribute((DependencyObject^::typeid))] [TypeConverterAttribute((CultureInfoIetfLanguageTagConverter^::typeid))] static CultureInfo^ GetInputLanguage( DependencyObject^ target )
Parameters
- target
-
Type:
System.Windows::DependencyObject^
The dependency object for which to retrieve the input language.
Return Value
Type: System.Globalization::CultureInfo^A CultureInfo object representing the input language for the specified dependency object.
| Exception | Condition |
|---|---|
| ArgumentNullException | Raised when target is null. |
The following example demonstrates how to use an InputLanguageManager to get the input language of a TextBox element.
.NET Framework
Available since 3.0
Available since 3.0
Show: