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. 有关此事件的隧道版本的信息,请参阅 PreviewTextInputFor information about the tunneling version of this event, see PreviewTextInput.

适用于

另请参阅