InputLanguageManager.GetInputLanguage Method (DependencyObject)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

static member GetInputLanguage : 
        target:DependencyObject -> CultureInfo


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

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