InputLanguageManager::SetInputLanguage Method (DependencyObject^, CultureInfo^)
.NET Framework (current version)
Sets the value of the InputLanguage attached property on the specified dependency object.
Assembly: PresentationCore (in PresentationCore.dll)
public: static void SetInputLanguage( DependencyObject^ target, CultureInfo^ inputLanguage )
Parameters
- target
-
Type:
System.Windows::DependencyObject^
The dependency object on which to set the InputLanguage attached property.
- inputLanguage
-
Type:
System.Globalization::CultureInfo^
A CultureInfo object representing the new value for the InputLanguage attached property.
| Exception | Condition |
|---|---|
| ArgumentNullException | Raised when target is null. |
The following example demonstrates how to use an InputLanguageManager to set the input language of a TextBox element.
.NET Framework
Available since 3.0
Available since 3.0
Show: