InputLanguageManager.GetInputLanguage Method (DependencyObject)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

[<AttachedPropertyBrowsableForTypeAttribute(typeof(DependencyObject))>]
[<TypeConverterAttribute(typeof(CultureInfoIetfLanguageTagConverter))>]
static member GetInputLanguage : 
        target:DependencyObject -> CultureInfo

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: