GetInputLanguage Method

InputLanguageManager::GetInputLanguage Method (DependencyObject^)

 

Returns the value of the InputLanguage  attached property for a specified dependency object.

Namespace:   System.Windows.Input
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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft