TextCompositionManager.RemoveTextInputHandler(DependencyObject, TextCompositionEventHandler) 方法

定義

移除 TextInput 附加事件的處理常式。Removes a handler for the TextInput attached event.

public:
 static void RemoveTextInputHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::TextCompositionEventHandler ^ handler);
public static void RemoveTextInputHandler (System.Windows.DependencyObject element, System.Windows.Input.TextCompositionEventHandler handler);
static member RemoveTextInputHandler : System.Windows.DependencyObject * System.Windows.Input.TextCompositionEventHandler -> unit
Public Shared Sub RemoveTextInputHandler (element As DependencyObject, handler As TextCompositionEventHandler)

參數

element
DependencyObject

要移除其中事件處理常式的相依性物件。A dependency object to remove the event handler from. 相依性物件必須是 UIElementContentElementThe dependency object must be a UIElement or a ContentElement.

handler
TextCompositionEventHandler

委派,指定要移除的處理常式。A delegate that designates the handler to remove.

備註

這個方法會移除這個事件之反升版本的處理常式。This method removes a handler for the bubbling version of this event. 如需此事件之通道版本的詳細資訊, PreviewTextInput請參閱。For information about the tunneling version of this event, see PreviewTextInput.

適用於

另請參閱