InputMethod.SetIsInputMethodEnabled(DependencyObject, Boolean) 方法

定義

設定附加屬性在指定相依物件上的值 IsInputMethodEnabled

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

參數

target
DependencyObject

用來設定 IsInputMethodEnabled 附加屬性的相依物件。

value
Boolean

附屬財產的新價值 IsInputMethodEnabled

例外狀況

當 為無效target,會被提高。

適用於

另請參閱