InputLanguageManager.GetInputLanguage Method

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.


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft