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 附加屬性的新值。

例外狀況

targetnull 時引發。

適用於

另請參閱