TextCompositionManager.RemovePreviewTextInputHandler(DependencyObject, TextCompositionEventHandler) 方法

定義

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

public:
 static void RemovePreviewTextInputHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::TextCompositionEventHandler ^ handler);
public static void RemovePreviewTextInputHandler (System.Windows.DependencyObject element, System.Windows.Input.TextCompositionEventHandler handler);
static member RemovePreviewTextInputHandler : System.Windows.DependencyObject * System.Windows.Input.TextCompositionEventHandler -> unit
Public Shared Sub RemovePreviewTextInputHandler (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 tunneling version of this event. 如需此事件之反升版本的詳細資訊TextInput, 請參閱。For information about the bubbling version of this event, see TextInput.

適用於

另請參閱