InputLanguageManager.SetRestoreInputLanguage 方法

定义

设置指定依赖对象上的 RestoreInputLanguage 依赖属性的值。

public:
 static void SetRestoreInputLanguage(System::Windows::DependencyObject ^ target, bool restore);
public static void SetRestoreInputLanguage (System.Windows.DependencyObject target, bool restore);
static member SetRestoreInputLanguage : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetRestoreInputLanguage (target As DependencyObject, restore As Boolean)

参数

target
DependencyObject

要为其设置 RestoreInputLanguage 的值的依赖对象。

restore
Boolean

要对其设置 RestoreInputLanguage 附加属性的布尔值。

例外

targetnull 时引发。

适用于

另请参阅